Пример #1
0
 public WhatIsAddress(BitcoinAddress address)
     : base(address)
 {
     IsP2SH         = address is BitcoinScriptAddress;
     ScriptPubKey   = new WhatIsScript(address.ScriptPubKey, address.Network);
     Hash           = new uint160(address.Hash.ToBytes(true), false);
     ColoredAddress = address.ToColoredAddress().ToString();
 }
Пример #2
0
 public WhatIsPublicKey(PubKey pubkey, Network network)
 {
     Hex         = pubkey.ToHex();
     Address     = new WhatIsAddress(pubkey.GetAddress(network));
     P2SHAddress = new WhatIsAddress(pubkey.ScriptPubKey.GetScriptAddress(network))
     {
         RedeemScript = new WhatIsScript(pubkey.ScriptPubKey, network)
     };
     ScriptPubKey = new WhatIsScript(pubkey.ScriptPubKey, network);
     IsCompressed = pubkey.IsCompressed;
 }