pub fn verify_payload(
secret: &[u8],
body: &[u8],
signature_header: &str,
now_unix_seconds: i64,
tolerance_seconds: i64,
) -> Result<(), SigError>Expand description
Verify a X-Allowthem-Signature header value.
now_unix_seconds is the current time; tolerance_seconds is the
maximum allowed age of the timestamp (replay protection). Pass 0
for tolerance_seconds to skip the freshness check entirely.
Returns Ok(()) on success, Err(SigError) otherwise.