Skip to main content

validate_challenge

Function validate_challenge 

Source
pub fn validate_challenge(
    challenge: &IronShieldChallenge,
) -> Result<(), CryptoError>
Expand description

Verifies a challenge and checks if it’s valid and not expired

This is a comprehensive validation function that checks:

  • Signature validity
  • Challenge expiration
  • Basic format validation

§Arguments

  • challenge: The challenge to validate

§Returns

  • Result<(), CryptoError>: Ok(()) if valid, error if invalid