public BitcoinWitPubKeyAddress(WitKeyId segwitKeyId, Network network) :
     base(
         NotNull(segwitKeyId) ??
         Network.CreateBech32(Bech32Type.WITNESS_PUBKEY_ADDRESS, segwitKeyId.ToBytes(), 0, network), network)
 {
     this.Hash = segwitKeyId;
 }
 public BitcoinWitPubKeyAddress(WitKeyId segwitKeyId, Network network)
     : base(new[] { (byte)OpcodeType.OP_0, (byte)0x00 }.Concat(segwitKeyId.ToBytes(true)).ToArray(), network)
 {
 }
Exemple #3
0
 protected override Script GeneratePaymentScript()
 {
     return(PayToWitTemplate.Instance.GenerateScriptPubKey(OpcodeType.OP_0, Hash.ToBytes()));
 }
		public BitcoinWitPubKeyAddress(WitKeyId segwitKeyId, Network network)
			: base(new[] { (byte)OpcodeType.OP_0, (byte)0x00 }.Concat(segwitKeyId.ToBytes(true)).ToArray(), network)
		{
		}