X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fbase58.h;h=0ca0fda7da37646e00c6c4d5203a8e1d4b741784;hb=510a23a2c838245cd4681ed0b4fbce48e8ebf506;hp=b312443110e947d7d77461087cf8d258893ec213;hpb=fbd44e84d5841867d36d295d4f347fd5e55d293f;p=novacoin.git diff --git a/src/base58.h b/src/base58.h index b312443..0ca0fda 100644 --- a/src/base58.h +++ b/src/base58.h @@ -82,6 +82,8 @@ public: * The data vector contains RIPEMD160(SHA256(pubkey)), where pubkey is the serialized public key. * Script-hash-addresses have version 5 (or 196 testnet). * The data vector contains RIPEMD160(SHA256(cscript)), where cscript is the serialized redemption script. + * Pubkey-pair-addresses have version 1 (or 6 testnet) + * The data vector contains a serialized copy of two compressed ECDSA secp256k1 public keys. */ class CBitcoinAddress; class CBitcoinAddressVisitor : public boost::static_visitor @@ -113,6 +115,7 @@ public: bool Set(const CScriptID &id); bool Set(const CTxDestination &dest); bool Set(const CMalleablePubKey &mpk); + bool Set(const CBitcoinAddress &dest); bool IsValid() const; CBitcoinAddress() @@ -142,6 +145,7 @@ public: CTxDestination Get() const; bool GetKeyID(CKeyID &keyID) const; bool IsScript() const; + bool IsPubKey() const; bool IsPair() const; };