Import
Signature
Create and sign an identity proof transaction, returning the X-Identity-Txn header. Constructs a zero-amount self-payment transaction containing the timestamped identity note and signs it with the provided private key.

Parameters

str
required
Base64-encoded Algorand private key of the sender.
str
required
Base64-encoded genesis hash of the network against which identity is proven.
int | None
default:"None"
Unix timestamp (seconds) embedded in the identity note. Defaults to current time.

Returns

dict[str, str]
Single-entry dictionary {"X-Identity-Txn": "<base64 msgpack-encoded signed txn>"}.

Examples

See also

  • verify_identity_txn: Server-side verification function.
  • sign_identity: Legacy three-header signing mechanism.
Source: ai_economy_sdk/identity.py