pub fn wtp_verify_revoke_message(wpk: &secp256k1::PublicKey, revoke_token: &secp256k1::Signature) -> bool {
        let secp = secp256k1::Secp256k1::verification_only();
        let revoke_msg = RevokedMessage::new(String::from("revoked"), wpk.clone());
        let msg = secp256k1::Message::from_slice(&revoke_msg.hash_to_slice()).unwrap();
        // verify that the revocation token is valid with respect to revoked || wpk
        return secp.verify(&msg, &revoke_token, &wpk).is_ok();
    }
///
/// Used in merch-close WTP for validating that revoke_token is a valid signature under <wpk> and the <revoked || wpk> message
///
Used in merch-close WTP for validating that revoke_token is a valid signature under  and the  message
Used in merch - close WTP for validating that revoke_token is a valid signature under and the message
pub fn wtp_verify_revoke_message(wpk: &secp256k1::PublicKey, revoke_token: &secp256k1::Signature) -> bool {
        let secp = secp256k1::Secp256k1::verification_only();
        let revoke_msg = RevokedMessage::new(String::from("revoked"), wpk.clone());
        let msg = secp256k1::Message::from_slice(&revoke_msg.hash_to_slice()).unwrap();
        // verify that the revocation token is valid with respect to revoked || wpk
        return secp.verify(&msg, &revoke_token, &wpk).is_ok();
    }
pub fn wtp_verify_revoke_message ( wpk : & secp256k1 :: PublicKey , revoke_token : & secp256k1 :: Signature ) -> bool { let secp = secp256k1 :: Secp256k1 :: verification_only ( ) ; let revoke_msg = RevokedMessage :: new ( String :: from ( " " ) , wpk . clone ( ) ) ; let msg = secp256k1 :: Message :: from_slice ( & revoke_msg . hash_to_slice ( ) ) . unwrap ( ) ; // verify that the revocation token is valid with respect to revoked || wpk return secp . verify ( & msg , & revoke_token , & wpk ) . is_ok ( ) ; }
Used in merch-close WTP for validating that revoke_token is a valid signature under <wpk> and the <revoked || wpk> message
Used in merch - close WTP for validating that revoke_token is a valid signature under <wpk > and the <revoked || wpk > message
wpk
&secp256k1::PublicKey
revoke_token
&secp256k1::Signature
wpk
&secp256k1::PublicKey
revoke_token
&secp256k1::Signature