Exemplo n.º 1
0
 public BitcoinWitScriptAddress(WitScriptId segwitScriptId, Network network)
     : base(
         NotNull(segwitScriptId) ?? Network.CreateBech32(Bech32Type.WITNESS_SCRIPT_ADDRESS,
                                                         segwitScriptId.ToBytes(), 0, network), network)
 {
     this.Hash = segwitScriptId;
 }
Exemplo n.º 2
0
 public BitcoinWitScriptAddress(WitScriptId segwitKeyId, Network network)
     : base(new[] { (byte)OpcodeType.OP_0, (byte)0x00 }.Concat(segwitKeyId.ToBytes(true)).ToArray(), network)
 {
 }
Exemplo n.º 3
0
 protected override Script GeneratePaymentScript()
 {
     return(PayToWitTemplate.Instance.GenerateScriptPubKey(OpcodeType.OP_0, Hash.ToBytes()));
 }
Exemplo n.º 4
0
		public BitcoinWitScriptAddress(WitScriptId segwitKeyId, Network network)
	: base(new[] { (byte)OpcodeType.OP_0, (byte)0x00 }.Concat(segwitKeyId.ToBytes(true)).ToArray(), network)
		{
		}