ContractChallengeValidationErrorInvalidNetworkPassphrase
extends ContractChallengeValidationError
in package
Exception thrown when a contract challenge has an invalid network_passphrase.
This exception is thrown when the network_passphrase provided in the challenge response does not match the expected network passphrase for the current network (testnet or pubnet). This validation ensures the client is authenticating against the correct network and prevents cross-network authentication attacks.
Security Impact: High security check. An incorrect network_passphrase indicates a network mismatch that could lead to signatures being valid on an unintended network. This could enable replay attacks where authentication credentials from testnet are used on pubnet, or vice versa. Always verify the network_passphrase matches the expected network.