X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkey.cpp;h=1012915c1ef6bdacc7707c8862fd083603999863;hb=fbd44e84d5841867d36d295d4f347fd5e55d293f;hp=b1db7cbf0e6a6f313ce1509a6d659f4640412bba;hpb=5f3f7465db4444e49dd4a896f88c090b40d0a303;p=novacoin.git 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);