Skip to main content

verify

Function verify 

Source
pub fn verify(
    message: &[u8],
    context: &[u8],
    signature: &HybridSignature,
    signer: &PublicKeyBundle,
) -> Result<()>
Expand description

Verify a HybridSignature over message and context against the signer’s PublicKeyBundle.

Both the Ed25519 and the ML-DSA-87 component must be valid.

§Errors

Returns Error::VerificationFailed if either component is invalid, and Error::ContextTooLong if context exceeds 255 bytes.