Functions§
- current_
agent_ id - Canonical resolver for the current agent identity. Reads
LEAN_CTX_AGENT_ID(or legacyLCTX_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_keypairwhen the public key must be embedded in the payload before the signature is computed over it. - sign_
with_ public_ key - Sign
dataand return the signature together with the verifying key of the SAME keypair — one atomic key-store resolution. - verify_
signature