mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
CSecret/CKey -> CKey/CPubKey split/refactor
This commit is contained in:
parent
5d891489ab
commit
dfa23b94c2
26 changed files with 578 additions and 609 deletions
|
|
@ -144,9 +144,7 @@ bool CAlert::RelayTo(CNode* pnode) const
|
|||
|
||||
bool CAlert::CheckSignature() const
|
||||
{
|
||||
CKey key;
|
||||
if (!key.SetPubKey(ParseHex(fTestNet ? pszTestKey : pszMainKey)))
|
||||
return error("CAlert::CheckSignature() : SetPubKey failed");
|
||||
CPubKey key(ParseHex(fTestNet ? pszTestKey : pszMainKey));
|
||||
if (!key.Verify(Hash(vchMsg.begin(), vchMsg.end()), vchSig))
|
||||
return error("CAlert::CheckSignature() : verify signature failed");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue