pub fn verify(revoke: &Revoke) -> Result<(), String> {
        let msg = Revoke::signature_bytes(&revoke.pk, revoke.revoked_at);

        if !revoke
            .revoked_by
            .verify(msg.as_slice(), revoke.signature.as_slice())
        {
            return Err("Revoke has incorrect signature.".to_string());
        }

        Ok(())
    }
/// Verifies that revocation is cryptographically correct.
Verifies that revocation is cryptographically correct.
Verifies that revocation is cryptographically correct .
pub fn verify(revoke: &Revoke) -> Result<(), String> {
        let msg = Revoke::signature_bytes(&revoke.pk, revoke.revoked_at);
        if !revoke
            .revoked_by
            .verify(msg.as_slice(), revoke.signature.as_slice())
        {
            return Err("Revoke has incorrect signature.".to_string());
        }
        Ok(())
    }
pub fn verify ( revoke : & Revoke ) -> Result < ( ) , String > { let msg = Revoke :: signature_bytes ( & revoke . pk , revoke . revoked_at ) ; if ! revoke . revoked_by . verify ( msg . as_slice ( ) , revoke . signature . as_slice ( ) ) { return Err ( " " . to_string ( ) ) ; } Ok ( ( ) ) }
Verifies that revocation is cryptographically correct.
Verifies that revocation is cryptographically correct .
revoke
&Revoke