Import
Signature
Verify an X-Identity-Txn header value against timestamp skew and Algorand signature. Decodes the signed transaction, checks that it is a self-payment of 0 amount with 0 fee and no rekeying or close-to fields, verifies network genesis hash matching, validates round validity window <= 1000, checks timestamp within max_skew seconds, and cryptographically verifies the Ed25519 signature against the sender address. Notes Rejects multisig, logic signatures, and rekeyed accounts. This proof cannot be executed on chain because fee is 0 and rounds 1..1000 are long past on live nets.

Parameters

str
required
Value of the X-Identity-Txn HTTP request header (base64 msgpack).
str
required
Base64-encoded genesis hash of the expected Algorand network.
float | int
default:"120"
Maximum allowable clock skew in seconds between the timestamp in the note and now.
float | int | None
default:"None"
Current unix timestamp. If None, defaults to time.time().

Returns

str or None
The verified Algorand sender address if all security checks pass, or None if verification fails. Never raises exceptions.

Examples

See also

  • sign_identity_txn: Client-side proof creation.
  • verify_identity: High-level verification supporting both proof formats.
Source: ai_economy_sdk/identity.py