Module identity

Module identity 

Source
Expand description

User identity: Ed25519 keypair persisted to disk.

The keypair can be stored in two formats:

  • Plaintext (identity.key) — raw protobuf bytes, no passphrase.
  • Encrypted (identity.key.enc) — JSON envelope produced by Argon2id key-derivation + ChaCha20-Poly1305 symmetric encryption. Used when the user supplies --passphrase at bp login.

The encrypted format is automatically detected at load time. The plaintext format remains supported for backwards compatibility and for headless/CI environments.

Structs§

EncryptedKeyFile
On-disk representation of a passphrase-protected keypair.
ExportedIdentity
Portable JSON bundle that carries a complete BillPouch identity.
Identity
In-memory identity: the loaded keypair and all derived or persisted metadata.
UserProfile
Persistent user metadata stored alongside the keypair.

Enums§

ExportedKeyData
Key data carried inside an ExportedIdentity.

Functions§

fingerprint
Human-readable fingerprint of a public key (hex-encoded SHA-256, first 16 bytes).
fingerprint_pubkey
Fingerprint of a public key (hex-encoded SHA-256[0..8]).