X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fkey.cpp;h=c11da92e62d9559874f1cbab11b74ec7a0e75a05;hp=a1ab2a398b7377cd060f2c2191d64587446da10f;hb=7f910f05a59a13fc96b8a4cafa4e6fdd5de725e4;hpb=8df93a092b9d9610e52c8405fe0b43374e9fba6f diff --git a/src/key.cpp b/src/key.cpp index a1ab2a3..c11da92 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -780,15 +780,6 @@ CMalleableKey::CMalleableKey(const CSecret &L, const CSecret &H) SetSecrets(L, H); } -/* -CMalleableKey& CMalleableKey::operator=(const CMalleableKey &b) -{ - SetSecrets(b.vchSecretL, b.vchSecretH); - - return (*this); -} -*/ - CMalleableKey::~CMalleableKey() { } @@ -816,12 +807,6 @@ bool CMalleableKey::SetSecrets(const CSecret &pvchSecretL, const CSecret &pvchSe return true; } -void CMalleableKey::GetSecrets(CSecret &pvchSecretL, CSecret &pvchSecretH) const -{ - pvchSecretL = vchSecretL; - pvchSecretH = vchSecretH; -} - CMalleablePubKey CMalleableKey::GetMalleablePubKey() const { CKey L, H; @@ -1012,7 +997,7 @@ bool CMalleableKey::SetString(const std::string& strMutableKey) CDataStream ssKey(vchTemp, SER_NETWORK, PROTOCOL_VERSION); ssKey >> *this; - return IsNull(); + return IsValid(); } // CMalleableKeyView @@ -1041,13 +1026,6 @@ CMalleableKeyView::CMalleableKeyView(const CMalleableKeyView &b) nVersion = CURRENT_VERSION; } -CMalleableKeyView::CMalleableKeyView(const CSecret &L, const CPubKey &pvchPubKeyH) -{ - vchSecretL = L; - vchPubKeyH = pvchPubKeyH.Raw(); - nVersion = CURRENT_VERSION; -} - CMalleableKeyView& CMalleableKeyView::operator=(const CMalleableKey &b) { vchSecretL = b.vchSecretL; @@ -1152,7 +1130,7 @@ bool CMalleableKeyView::SetString(const std::string& strMutableKey) CDataStream ssKey(vchTemp, SER_NETWORK, PROTOCOL_VERSION); ssKey >> *this; - return IsNull(); + return IsValid(); } std::vector CMalleableKeyView::Raw() const