Skip to main content

validate_message

Function validate_message 

Source
pub fn validate_message(
    nonces: &NonceStore,
    message: &SiweMessage,
    expected_domain: &str,
) -> Result<(), SiweError>
Expand description

Validate the non-cryptographic parts of a SIWE message: domain, nonce, expiration, not-before. Use verify to also check the signature.