Skip to main content

ed25519ctx_verify

Function ed25519ctx_verify 

Source
pub fn ed25519ctx_verify(
    pk: &Ed25519PublicKey,
    msg: &[u8],
    context: &[u8],
    sig: &Ed25519Signature,
) -> bool
Expand description

Verify an Ed25519ctx signature.

The same context used at sign time must be supplied here. A signature produced under one context will NOT verify under a different context, even if the (sk, msg) are the same – that’s the whole point of ctx mode.