Skip to main content

verify

Function verify 

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

Verifies sig over message with context ctx against pk (§3.3 steps 1–5).

min_suite is the community’s minimum suite (§4.1), or 0x01 outside a community.

§Errors

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