'Verify the signature of a vote'

@classmethod
def verify_vote_signature(cls, vote):

    signature = vote.get('signature')
    pk_base58 = vote.get('node_pubkey')
    if (not ((type(signature) == str) and (type(pk_base58) == str))):
        raise ValueError(('Malformed    vote:    %s' % vote))
    public_key = PublicKey(pk_base58)
    body = serialize(vote['vote']).encode()
    return public_key.verify(body, signature)
