Skip to content

Function crypto::verify

zaun_community_protocol::crypto::verify · Function

pub fn verify(pk: &PublicKey, sig: &Signature, ctx: Context, message: &[u8], min_suite: u8) -> Result<(), VerifyError>

Verifies sig over message with context ctx against pk.

min_suite is the community’s minimum suite, or 0x01 outside a community.

VerifyError on a suite mismatch or downgrade, or when either component fails.

Full rustdoc page