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