Key inventory
This annex adds no requirements: it summarizes which keys exist according to what has been decided so far in the other documents, so that decisions can be made with the full picture. If anything here contradicts another document, the other document prevails and this annex is corrected.
The algorithms are specified in cryptography. “Hardware” means the device’s hardware key store, with no possibility of extracting the key; “synchronized” means copied between the same person’s devices with end-to-end encryption (client).
1. Person
Section titled “1. Person”| Key | How many | What for | Where it lives | Rotates? | If lost |
|---|---|---|---|---|---|
| Seed | 1 per person | Source of the relationship keys (SLIP-10 over P-256, hardened only). Holder keys do not come from it. | Synchronized or transferred between the person’s devices; Shamir shares with the guardians if there is social recovery. | No. | Recovery from another device, guardians (3 of 5) or BIP39 kit (client). |
| Device key | 1 per device | Unlocking the wallet with user verification and authorizing the linking of other devices. | Hardware, on that device. | No; it is replaced with the device. | It is revoked from another device. Nothing else is lost. |
| Relationship keys (did:peer:4) | 3 per relationship: signing (authentication) and a hybrid encryption pair, P-256 and ML-KEM-768 (keyAgreement) | Signing and encrypting the DIDComm messages of that relationship. | Derived from the seed and the entity’s did:keri, so they are always the same for each entity. | No: the identifier is stable. | They are regenerated from the seed. |
Holder keys (credential binding, SD-JWT VC cnf) |
1 per copy in the batch: 10 per credential and device | Proving in a presentation, with a Key Binding JWT, that the credential belongs to whoever presents it. | Hardware, in the device’s secure chip. ML-DSA-65 + ES256 if the chip supports it; ES256 otherwise. Not exportable and never synchronized. Each use requires a fingerprint or PIN. | No; new copies are requested from the issuer. | The wallet asks the issuer for new copies, with new keys, when changing device or after recovery. |
| Ephemeral linking key | 1 per transfer | Encrypted channel when linking a new device, with hybrid key agreement. | Memory; discarded when finished. | Not applicable. | Not applicable. |
Example: a person with 2 devices, 10 relationships and 5 credentials in batches of 10 has 2 device keys, 30 relationship keys and 50 holder keys on each device. All of this is invisible to them: the wallet manages it on its own.
Derivation of the relationship keys. See cryptography, 5.
2. Entity and its managers
Section titled “2. Entity and its managers”| Key | How many | What for | Where it lives | Rotates? | If lost |
|---|---|---|---|---|---|
| Manager keys (the entity’s current KEL signing keys) | 1 per mobile device of each manager and entity, with weights so that each manager counts as one vote | Signing KEL events (adding and removing managers, nodes, witnesses and mediators) with the M-of-N threshold, and the manager’s approvals of the entity’s operations. | Hardware, in the manager’s wallet on that device. ML-DSA-65 + ES256 if the chip supports it; ES256 otherwise. Never synchronized, and never on a node or on the console. | Yes, with KERI rotation. | The other managers remove it with a rotation. An offline backup key in the threshold is recommended. |
| Next keys (pre-rotation) | 1 per current key | Advance commitment to the keys that will replace the current ones; only their hash is published in the KEL. | Hardware, on the same device. | They are revealed on rotation and new ones are generated. | Same as the current key. |
| Manager credential holder key | 1 per device of each manager and entity | Presenting the manager credential, for example to sign in to the console. | Hardware, in the device’s secure chip. | No; the entity issues a new credential. | The entity issues a new manager credential to the new device. |
| Entity encryption key (keyAgreement of its DID document) | 1 hybrid pair (P-256 and ML-KEM-768) per entity node | Receiving the encrypted DIDComm messages that holders send it. DIDComm encrypts in two layers: the envelope for the mediator (mediator encryption key) and the content for the entity; each recipient knows which key to use from the kid. |
Each in the protected key storage of its entity node (HSM or equivalent), authorized with M of N in the KEL; never shared. The holder encrypts for all of them at once (network, 6.4.1). | Yes, with KERI rotation. | If a node goes down, the others decrypt with their own keys; the lost node’s key is removed with M of N. |
Issuing key (iss = did:keri, kid according to the KEL) |
1 or more | Signing the credentials the entity issues, including manager credentials. ML-DSA-65 + ES256 recommended. | In the protected key storage of the entity node, generated at the entity’s sign-up or recovery and authorized with M of N in the KEL. | Yes. | It is removed with M of N and the node generates another. Credentials already issued remain verifiable with the KEL. |
| Record key | 1 or more | Signing operation records and receipts (network, 7). ML-DSA-65 + ES256 recommended. | In the protected key storage of the entity node, like the issuing key. | Yes. | Same as the issuing key. |
| Store key | 1 or more | Encrypting the entity store at rest (network, 6.4). | Only on the entity nodes. | Yes. | Without it the store cannot be read: the entity nodes keep it so that losing one does not lose it. |
| Console session key | 1 per console session | Receiving the sign-in presentation and signing the console’s requests to the entity node during the session. | Memory of the console; discarded when the session ends. | Not applicable. | The session ends; the person signs in again. |
Keys for daily use. The encryption, issuing and record keys are used automatically and continuously, so they do not go through the managers’ M-of-N signatures on each use. The entity node generates and keeps them in protected key storage: they are generated in the entity’s sign-up flow, both when creating it and when recovering it, and they are authorized and revoked with M of N in the KEL (network, 6.4). The rotation keys are the managers’ keys and stay in their wallets.
An entity acting as a holder uses its public did:keri, because entities do not need anonymity; it has no pairwise relationship keys. Its credentials (including an authorization token it holds) are bound to a key of its did:keri that the entity node keeps in protected key storage, without batches of copies.
3. Node
Section titled “3. Node”| Key | How many | What for | Where it lives | Rotates? | If lost |
|---|---|---|---|---|---|
| Node identity key (transferable AID) | 1 | Signing heartbeats, messages between nodes, storage proofs, evidence, bandwidth receipts, its node directory entry, GET /1.0/info and, on a Mediator Node, its endpoint and push notices. |
Hardware if the device allows it; otherwise, software. Its files allow recovery by the owner (network, 6.2.1). | Yes, with KERI rotation. | Recovery with the files; without them, a new identity. |
| Next key (pre-rotation) | 1 | Commitment to the next identity key. | Same as the previous one. | It is revealed on rotation. | Same as the previous one. |
| Mediator encryption key (Mediator Node only) | 1 hybrid pair (P-256 and ML-KEM-768) | Receiving the DIDComm forwarding messages (forward) sent to it for delivery into mailboxes. It does not allow reading their content. | Same as the identity key. | Yes. | It is rotated; pending messages encrypted with the previous one are lost. |
| TLS key (if it has its own domain) | 1 per domain | Public read access over HTTPS. | Software, on the node. | Yes, according to its certificate. | Another certificate is issued. It does not affect the node’s identity. |
| Transport keys between nodes | Ephemeral | End-to-end encryption between nodes, also through a Relay Node. Hybrid key agreement recommended; mandatory between nodes of the same entity. | Memory. | Per session. | Not applicable. |
| Push service credentials (Push Node only) | 1 per publisher and platform | Sending notices. They belong to the wallet’s publisher, not to Almena Network. | Runtime secret. | According to the provider. | The push module is disabled; the node keeps working. |
4. Almena Trust
Section titled “4. Almena Trust”Almena Trust is one more entity: it has the same keys as any entity (section 2). Since it is the root of trust, it SHOULD use a high M-of-N threshold and managers on separate devices.
5. Open questions
Section titled “5. Open questions”None for now.