X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fkey.cpp;h=1012915c1ef6bdacc7707c8862fd083603999863;hp=b1db7cbf0e6a6f313ce1509a6d659f4640412bba;hb=fbd44e84d5841867d36d295d4f347fd5e55d293f;hpb=90d203d2e37a06a368a5ebc3af03c1d3af7ec04e diff --git a/src/key.cpp b/src/key.cpp index b1db7cb..1012915 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -725,6 +725,14 @@ std::string CMalleablePubKey::ToString() const return EncodeBase58Check(vch); } +bool CMalleablePubKey::setvch(const std::vector &vchPubKeyPair) +{ + CDataStream ssKey(vchPubKeyPair, SER_NETWORK, PROTOCOL_VERSION); + ssKey >> *this; + + return IsValid(); +} + std::vector CMalleablePubKey::Raw() const { CDataStream ssKey(SER_NETWORK, PROTOCOL_VERSION);