Skip to main content

verify

Function verify 

Source
pub fn verify(
    token: &str,
    signer: &PublicKey,
    body: &[u8],
    now: Timestamp,
) -> Result<Claims, Error>
Expand description

Checks a token’s signature by signer, its times and its body; returns its claims. Replays are checked separately (Replays), after the signer is known to be a member.