src/checkpointsync.cpp
bool CSyncCheckpoint::CheckSignature()
{
    string strMasterPubKey = Params().CheckpointPubKey();
    CPubKey key(ParseHex(strMasterPubKey));
    if (!key.Verify(Hash(vchMsg.begin(), vchMsg.end()), vchSig))
        return error("CSyncCheckpoint::CheckSignature() : verify signature failed");

    // Now unserialize the data
    CDataStream sMsg(vchMsg, SER_NETWORK, PROTOCOL_VERSION);
    sMsg >> *(CUnsignedSyncCheckpoint*)this;
    return true;
}
// Verify signature of sync-checkpoint message
Verify signature of sync-checkpoint message
Verify signature of sync - checkpoint message
bool CSyncCheckpoint::CheckSignature()
{
    string strMasterPubKey = Params().CheckpointPubKey();
    CPubKey key(ParseHex(strMasterPubKey));
    if (!key.Verify(Hash(vchMsg.begin(), vchMsg.end()), vchSig))
        return error("CSyncCheckpoint::CheckSignature() : verify signature failed");
    CDataStream sMsg(vchMsg, SER_NETWORK, PROTOCOL_VERSION);
    sMsg >> *(CUnsignedSyncCheckpoint*)this;
    return true;
}
bool CSyncCheckpoint :: CheckSignature ( ) { string strMasterPubKey = Params ( ) . CheckpointPubKey ( ) ; CPubKey key ( ParseHex ( strMasterPubKey ) ) ; if ( ! key . Verify ( Hash ( vchMsg . begin ( ) , vchMsg . end ( ) ) , vchSig ) ) return error ( " " ) ; CDataStream sMsg ( vchMsg , SER_NETWORK , PROTOCOL_VERSION ) ; sMsg >> * ( CUnsignedSyncCheckpoint * ) this ; return true ; }
Verify signature of sync-checkpoint message
Verify signature of sync - checkpoint message
// Now unserialize the data