Пример #1
0
		public TxInUndo(NBitcoin.TxOut txOut)
		{
			this.TxOut = txOut;
		}
Пример #2
0
		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);
		}
Пример #3
0
 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");
 }
Пример #4
-1
 public OpenchainClient(NBitcoin.Key openChainKey, string assetName, Uri openChainUri, Network network)
 {
     this.openChainKey = openChainKey;
     this.assetName = assetName;
     this.openChainUri = openChainUri;
     this.network = network;
 }