Skip to main content

Module agent_identity

Module agent_identity 

Source

Functions§

current_agent_id
Canonical resolver for the current agent identity. Reads LEAN_CTX_AGENT_ID (or legacy LCTX_AGENT_ID), falling back to "local". Resolved once per process and cached, so all subsystems (heatmap, savings ledger, audit) attribute traces to the same identity.
get_or_create_keypair
get_public_key
hex_decode
hex_encode
sign_bytes
sign_bytes_with
Sign with an already-resolved keypair (no store access). Pair with get_or_create_keypair when the public key must be embedded in the payload before the signature is computed over it.
sign_with_public_key
Sign data and return the signature together with the verifying key of the SAME keypair — one atomic key-store resolution.
verify_signature