public TxInUndo(NBitcoin.TxOut txOut) { this.TxOut = txOut; }
private static ECPoint DecompressKey(NBitcoin.BouncyCastle.Math.BigInteger xBN, bool yBit) { var curve = ECKey.Secp256k1.Curve; byte[] compEnc = X9IntegerConverter.IntegerToBytes(xBN, 1 + X9IntegerConverter.GetByteLength(curve)); compEnc[0] = (byte)(yBit ? 0x03 : 0x02); return curve.DecodePoint(compEnc); }
internal static void AssertKeyPath(NBitcoin.KeyPath keyPath) { if(keyPath.Indexes.Length > 10) throw new ArgumentOutOfRangeException("keypath", "The key path should have a maximum size of 10 derivations"); }
public OpenchainClient(NBitcoin.Key openChainKey, string assetName, Uri openChainUri, Network network) { this.openChainKey = openChainKey; this.assetName = assetName; this.openChainUri = openChainUri; this.network = network; }