Expand description
Per-agent Ed25519 identity keypair.
Loaded from <agent_home>/identity.key (private, 0600) and
<agent_home>/identity.pub (public, multibase-encoded text).
Structs§
- Agent
Identity - Chain
Options - Per-call options for
verify_chain. - Chain
Outcome - Outcome of a successful chain verification.
- Rotation
Attestation - Cryptographic proof of an identity-key rotation.
Enums§
- Chain
Error - Errors from
verify_chain. - Identity
Error - Rotation
Reason - Why a rotation happened. Free-form audit hint; does not affect verification
rules other than
Emergency, which permits an empty signature.
Functions§
- decode_
pubkey - Decode a multibase-encoded pubkey. Accepts any multibase variant.
- default_
dir - Default location:
<agent_home>/identity.{key,pub}. - ed25519_
pub_ to_ x25519 - Convert an Ed25519 public key to its X25519 (Montgomery
u) public key. - encode_
pubkey - Encode an Ed25519 public key to multibase base58btc (
zprefix). - verify_
chain - Walk the chain top-to-bottom and verify it forms a valid history. Returns the head pubkey + version on success.
- x25519_
pub_ from_ multibase - Decode a multibase Ed25519 pubkey and convert it to its X25519 public key.