InvalidSequenceNumberException

Exception thrown when the challenge transaction has an invalid sequence number.

SEP-10 Security Requirement: The sequence number MUST be exactly 0.

This requirement prevents transaction replay attacks. A sequence number of 0 ensures the transaction can never be submitted to the Stellar network, as all real accounts have sequence numbers starting at 0 and incrementing with each operation.

Attack scenario prevented: If a challenge used a real sequence number, an attacker who intercepts the signed challenge could potentially submit it to the network, executing unintended operations on the user's account.

Parameters

sequenceNumber

The actual sequence number found in the transaction

Constructors

Link copied to clipboard
constructor(sequenceNumber: Long)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?