public BitcoinBlindedAddress(PubKey blindingKey, TxDestination keyId, Network network)
     : base(NotNull(keyId, nameof(keyId)) ??
            NotNull(blindingKey, nameof(blindingKey)) ??
            Network.CreateBase58(Base58Type.BLINDED_ADDRESS,
                                 network.GetVersionBytes(((IBase58Data)keyId.GetAddress(network)).Type, true)
                                 .Concat(blindingKey.ToBytes())
                                 .Concat(keyId.ToBytes()), network), network)
 {
     _BlindingKey = blindingKey;
     _Hash        = keyId;
 }
 public BitcoinPubKeyAddress(KeyId keyId, Network network) :
     base(NotNull(keyId) ?? Network.CreateBase58(Base58Type.PUBKEY_ADDRESS, keyId.ToBytes(), network), network)
 {
     _KeyId = keyId;
 }
Пример #3
0
 public BitcoinScriptAddress(ScriptId scriptId, Network network)
     : base(NotNull(scriptId) ?? Network.CreateBase58(Base58Type.SCRIPT_ADDRESS, scriptId.ToBytes(), network), network)
 {
     _Hash = scriptId;
 }