Stellar PHP SDK API Documentation

ContractChallengeValidationErrorInvalidNonce extends ContractChallengeValidationError

Exception thrown when a contract challenge has inconsistent or invalid nonce values.

This exception is thrown when:

  • The nonce argument is not consistent across all authorization entries
  • The nonce is missing from the function arguments
  • The nonce format is invalid

Security Impact: Critical security check. The nonce provides replay protection by ensuring each challenge is unique and can only be used once. Inconsistent or missing nonces could allow replay attacks where an old signed challenge is reused for unauthorized authentication.

Tags
see
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0045.md

SEP-45 Replay Prevention

Table of Contents


        
On this page
  • Table Of Contents

Search results