Skip to content
Almena ID— version v2026-12-beta
Auto
EnglishEN

Client specification

Requirements that a conformant client must meet. It does not depend on anything in node/.

Almena has two kinds of client, each for a single type of user:

Wallet (mobile) Entity console (desktop)
For whom Only natural persons. Only entities, operated by their managers.
Where it runs Phone or tablet. Computer.
What it keeps The person’s seed, keys, relationships and credentials, including their manager credentials and manager keys. Nothing. It is stateless: no keys, no entity data and no credentials outlive the session.
How it is used The person unlocks it with local user verification. A person signs in with a QR code from their wallet and manages the entities their account allows (sign-in).
What it signs Everything the person signs, and every approval the person gives as a manager. Nothing. Approvals are signed in the manager’s wallet.
  1. The account. A person’s account is their identity in their wallet: the seed and the keys of that wallet. There is no central user account.
  2. Managing an entity. The relationship between a person and each entity they manage is a manager credential issued by the entity itself (manager credential). With it the person signs in to the console and the entity knows which of its manager keys are theirs.
  3. Where the entity lives. An entity’s keys and data are kept by its entity nodes, never by the console or by the managers’ wallets (network, 6.4). The exceptions are the managers’ KERI rotation keys, which stay in their wallets.
Who keeps what: wallet, entity console, entity node and entity store
  1. User verification before each sensitive operation. A wallet MUST require local user verification (device biometrics or an equivalent method, such as a system PIN) before signing, issuing a presentation, authorizing a token, approving an operation as a manager or changing the security configuration.
  2. Keys in secure storage. The person’s private keys SHOULD be stored in secure storage on the device and MUST NOT leave it in the clear. The key that unlocks the wallet on the device SHOULD be hardware-backed and non-exportable. The person’s keys MAY be moved to a new device according to the section “Changing device”. Platform signatures use ES256 over P-256 (see cryptography), compatible with that storage.
  3. Physical security keys (FIDO2): out of v2026-12-beta. Recovering an identity and authorizing a manager are already solved without them. They may be added later, for example as a guardian or as an entity’s backup key.
  1. One person per wallet. A wallet has a single profile, that of the person who uses it. It has no entity profiles: entities are managed from the console.
  2. Mediators. When creating the profile, the wallet assigns it 3 mediators at random from the node directory, gathered from at least two gateways (network, 8), without asking the person anything. In v2026-12-beta they are not changed by choice; one is only replaced automatically if it disappears (network, 6.1).
  3. Manager role. If the person manages entities, their wallet also keeps, for each one, the manager credential and the manager keys (section “Manager keys”), and shows the approvals the entity asks of them (section “Approvals”).

The specification speaks of generic capabilities, never of a vendor. A wallet uses those its platform offers:

Capability What for
Hardware key store Storing the device key, holder keys and manager keys so that they cannot be extracted. If it supports ML-DSA, the wallet uses post-quantum holder keys (cryptography).
Local user verification Biometrics or system code before each sensitive operation.
End-to-end encrypted synchronization Keeping a copy of a person’s seed and data to move them to a new device or recover them.
System push notifications Waking the wallet up when it has messages (optional).
Proximity communication Direct transfer from the old device to the new one.
Camera Scanning QR codes (section “Interaction input”), including the console sign-in code.
  • If a platform does not offer a capability, the wallet MUST still meet the MUST requirements and MAY limit functions, warning the person. For example, without synchronization it uses direct transfer; without a hardware store, an encrypted software store, and it does not offer the manager role.
  • A wallet MUST NOT use a capability that gives the platform provider access in the clear to the person’s keys or data.

The user has little technical knowledge, so changing device must be automatic or nearly so, without exporting to files.

  1. One device at a time. In v2026-12-beta a person uses their wallet on a single mobile device. Synchronization and direct transfer serve to move it to a new device or to recover it, not to use two at once: when the wallet is activated on a new device, the previous one MUST stop collecting messages and presenting credentials. What moves is the seed (from which the relationship keys come) and the person’s data. Credentials do not move: the new device asks the issuer for its own copies, because holder keys do not leave the secure chip (section “Credentials: batches and holder binding”). The console is not a device of the wallet: it keeps nothing.
  2. Automatic synchronization. A wallet MAY keep the person’s seed and data in a platform synchronization service, provided it is end-to-end encrypted and the provider cannot read it, and use it to move to a new device of the same platform. This also solves the loss of the device.
  3. Direct transfer. When there is no synchronization (another platform account, another system), the wallet MAY transfer the keys and data from the old device to the new one:
    1. The new device shows a QR code.
    2. The old device scans it, and both establish an end-to-end encrypted channel, with hybrid key agreement (ML-KEM-768 + P-256).
    3. Both show a short code that the person MUST compare before continuing.
    4. The transfer goes by proximity or over the network, never through a file.
  4. No third parties. Under no circumstances may keys be left in the clear outside the person’s device. Moving keys to a new device does not affect F2: it publishes nothing.
  5. Between different platforms. Each platform’s synchronization only works within its ecosystem. Between different platforms, the direct transfer of point 3 is used. In v2026-12-beta there is no Almena synchronization of its own between platforms: direct transfer is enough, and since credentials belong to the device, only the seed and the person’s data move. A synchronization of its own and using several devices at once remain future improvements.
  6. Managers. Manager keys and manager credentials are not synchronized or transferred: the new device gets its own (section “Manager keys”).
Changing device by direct transfer
  1. One seed per person. Each wallet profile is born from a random 256-bit seed generated on the device. Relationship keys MUST be derived from it with SLIP-10 over P-256, using only hardened derivation, so that nobody can link two derived keys without knowing the seed (F2).
  2. Not derived from the seed: the device key, the holder keys and the manager keys; they live in the device’s secure chip.
  3. No words by default. The person does not see the seed. What is synchronized or transferred to a new device is the seed (previous section).
  4. Seed and data. The seed recovers the relationship keys, not the list of relationships or the credentials. The specification does not require a backup of them: each wallet keeps its own data, and each entity node its own. If the person loses everything, they recover the seed and recover each relationship by contacting the entity again: the wallet derives the same did:peer:4, the entity recognizes them, and the person asks for their credentials again with the entity’s forms. Whether the entity makes that simpler because it already knows them is its decision (P10).
  1. The credential is not bound to the relationship. The issuer does not issue the credential over the did:peer of its relationship with the person, but over a holder key specific to each copy: a bare public key in the cnf of the SD-JWT VC, which cannot be resolved or linked to any DID.
  2. Batches. Each credential is issued in a batch of 10 copies, each with its own holder key. The wallet uses a different copy in each presentation, so that two verifiers cannot link them by the key. When fewer than 3 remain, the wallet automatically asks the issuer for more. If they run out and the issuer does not respond, the wallet SHOULD warn the person before reusing a copy. A manager credential is the exception: it is issued in a single copy (section “Manager credential”).
  3. Presentation. The wallet presents the copy with a Key Binding JWT signed with its holder key, which includes the verifier’s nonce and audience (aud). That way the verifier knows that whoever presents has the key and that the presentation is for it, and it cannot reuse it with someone else.
  4. Against credential trafficking.
    1. Holder keys MUST live in the device’s secure chip, be non-exportable and require a fingerprint or PIN on each presentation. Copying the credential to another device is useless without the key.
    2. Post-quantum. If the chip supports ML-DSA, holder keys MUST be composite ML-DSA-65 + ES256; otherwise, ES256 (cryptography). All the copies of a batch use the same algorithm.
    3. Without a secure chip. If the device has no secure chip, the wallet MAY store holder keys in an encrypted software store, warning the person that it is less secure. The wallet MUST declare it when it asks for the credential, and each verifier decides whether to accept it (P10). Such a device MUST NOT hold manager keys or manager credentials: to be a manager, the person needs a device with a secure chip.
    4. Where the keys are. In each issuance request and each refill, the wallet declares where it keeps the holder keys: hardware (the secure chip) or software (holder_key_storage, protocols). The issuer writes it in each copy as a claim that is always disclosed, and MAY refuse to issue with software; for a manager credential it MUST refuse. The verifier sees it and decides (P10). It is a declaration, not a proof: a manipulated wallet could lie (threat model, T-19). A proof signed by whoever publishes the wallet is left for a later version. The algorithm needs no declaration: it can be seen in the holder key itself (cnf) and in the Key Binding JWT.
    5. High risk. The verifier MAY also request physical binding data (for example, a photo) and an in-person check.
    6. Known limit. No system fully prevents someone from voluntarily lending their unlocked device to another person.
  5. Consequence. Since holder keys do not come from the seed and are not synchronized, the copies belong to the device, and when changing device or recovering, the wallet asks the issuer for new copies.
  6. Privacy during the transition. While few devices have post-quantum keys, the algorithm of the holder key distinguishes its holder from the rest and makes presentations easier to link (F2). The wallet SHOULD tell the person so before using post-quantum keys, until they are common.
A batch of copies and its automatic refill
  1. By default, the platform’s synchronization. If the wallet kept the seed and data in the platform’s synchronization (section “Changing device”), the new device recovers them from there.
  2. Trusted contacts (second route). A wallet MAY offer social recovery:
    1. The seed is split with Shamir into 5 shares, of which 3 are enough, among trusted contacts (guardians) chosen by the person.
    2. Before approving, each guardian MUST verify the person out of band, in person or by phone call.
    3. Recovery has a 48-hour wait that the person’s old device, if they still have it, can cancel.
    4. A guardian only knows that they hold a share; they do not see the person’s relationships or data.
  3. Recovery kit (optional). For advanced users, the wallet MAY show the seed as BIP39 words.
  4. Data. With the platform’s synchronization, the wallet also recovers its data and asks each issuer for new copies of its credentials, because holder keys are not recovered. With the guardians or the recovery kit, only the seed is recovered: the person recovers each relationship by contacting the entity again (section “A person’s seed”, item 4).
  5. Manager role. Manager keys are not recovered with the seed. A manager who loses their device is added again by the other managers with a rotation or, if they cannot reach the threshold, with the entity’s backup key, and the entity issues them a new manager credential (section “Manager keys”).
Recovery with guardians (3 of 5)
Section titled “Interaction input: QR codes and deep links”
  1. Scanning. A wallet MAY start interactions with the network by scanning a QR code or opening a deep link. It scans, among others, the entity invitations and the console sign-in code.
  2. Same content. A QR code MUST contain the same deep link that would be opened directly, so that an entity publishes a single format.
  3. Untrusted content. What arrives through a QR code or a deep link is untrusted input. The wallet MUST verify it (resolve the DID, check signatures and the Almena Trust credential) before showing anything as true, and MUST ask the person for confirmation before any action.
  4. Format. Deep links use the common almena:// scheme, which any conformant wallet can open. If several are installed, the system or the wallet lets the person choose. The exact format is in the registries, 7.
  5. Link next to the QR code. An entity MUST offer the link next to any QR code, so that a person who reads it on the same phone, or who cannot scan it, can open it directly.

What a wallet MUST do in the protocols, summarized:

  1. Informed consent. Show the person exactly which of their data will be shared, and why, before they approve or reject any form.
  2. One relationship per entity. Always use the same did:peer:4 with each entity, derived from the seed and the entity’s did:keri.
  3. Pending requests. Show the status of each request, allow cancelling it and warn if the acknowledgement does not arrive within 24 hours.
  4. Counter QR code. Show a QR code with a single-use contact code with a short expiry, and check the entity that responds before accepting it.
  5. Active permissions. Show the authorized tokens (merchant and bank) and allow revoking them.
  6. History and receipts. Store receipts, publish them if they are not on the network after 24 hours, and show a history in plain language.
  7. Manager role. Sign in to the console, show and sign approvals, and show the person their active console sessions so they can end any of them (protocols).

The console is the only way to manage an entity: create it, design and publish its forms, administer its managers and nodes, scan a person’s QR code at a counter and prepare the operations that the managers then approve from their wallets.

  1. Nothing is kept. The console MUST NOT store keys, entity data or credentials beyond the session, neither on disk nor in any other persistent store. When the session ends, it discards everything it has in memory.
  2. No keys of its own. Its only key is an ephemeral session key, generated when showing the sign-in code and discarded at the end of the session (key inventory).
  3. Any computer. Since it keeps nothing, the console MAY run on a shared computer. It does not need a hardware key store.
  4. The entity node does the work. Everything the console shows or changes, it reads from or asks of the entity’s nodes through the management interface (interface, 10). It never accesses the entity store directly.

Signing in reuses the verification flow: the console acts as verifier on behalf of the entity and the wallet presents the manager credential.

  1. The console shows a sign-in QR code (and its almena:// link). It carries a one-time code (nonce), the console’s ephemeral session key and a temporary mailbox where to reply. It expires after a few minutes.
  2. The person scans it with their wallet. The wallet shows which entities they can manage and the person chooses one or several.
  3. The wallet presents the manager credential of each chosen entity, with its Key Binding JWT carrying the nonce and the console’s session key as audience, encrypted for that key.
  4. The console checks each presentation (signature of the entity, not revoked, nonce) and opens a session on each entity’s node, which checks the presentation again before accepting it.
  5. Approval to open it (optional). The entity MAY require that opening a session go through its approval flow (section “Approvals”). The entity node then sends an approval-request to other managers, according to that flow, and opens the session only when they approve it; otherwise it rejects it with request_rejected. That way a sign-in obtained by deceiving a manager does not open a session on its own.
  6. Signing in generates no activity record on the network; the entity node writes it in its internal audit log (network, 7.2).

The session.

  1. A session ends when the person signs out, closes the console, ends it from their wallet, or after a period of inactivity set by the entity (default value to be set in testing).
  2. The wallet MUST show the person their active sessions and let them end any of them.
  3. A session only lets the console read and prepare. Any operation that commits the entity requires the approval of its managers from their wallets.
  4. Creation mode. A person who does not yet manage any entity signs in in creation mode: the QR code asks for no manager credential, and the session is not bound to any entity or node until the inception event is signed. It only allows the entity sign-up flow (section “Entity sign-up”).
  5. Recovery mode. Whoever has an entity’s backup sheet signs in in recovery mode: the QR code asks for no manager credential, and the session only allows recovering that entity with its backup key (section “Manager keys”).
  1. Signed in the wallet. Every operation that requires a manager’s approval (publishing a form, a KEL event or a new version of the entity configuration, adding a manager, the operations the entity’s approval flow covers) is prepared in the console and sent by the entity node to the wallet of each manager who must approve it, over their relationship (protocols).
  2. What the manager sees. The wallet MUST show the manager, in plain language, the entity, the operation and its consequences, and MUST require local user verification before signing.
  3. Approval flow. Each entity configures its own flow: a specific manager can act alone (1 of N) or approval can be joint, with the number the entity decides. No minimum is imposed. Each entity is responsible for managing manager additions and removals properly so as not to lock itself out. The console SHOULD warn, without preventing it, when a removal would leave the remaining managers unable to reach the threshold, which then only the backup key could fix (section “Manager keys”).
  4. Audit. Each approval is kept in the entity’s internal audit log, signed by the manager who gave it (network, 7.2).
  1. What it is. A verifiable credential that the entity issues to a person to make them its manager. It carries the entity, the manager’s public keys for that entity (section “Manager keys”) and, optionally, a name or a role chosen by the entity.
  2. Single copy. A manager acts publicly on behalf of the entity, so their presentations do not need to be unlinkable: the entity issues a single copy, bound to a holder key in the secure chip of the manager’s device.
  3. Removal. Removing a manager revokes their credential and removes their keys from the KEL with a rotation.
  1. One key per entity. Each manager has, on their mobile device and for each entity they manage, their own manager key in the hardware store, with its pre-rotation key. They are the entity’s KERI rotation keys: they sign the KEL events and the manager’s approvals. In v2026-12-beta they are ES256, because CESR does not yet define codes for ML-DSA (cryptography, 4). They MUST NOT be synchronized, transferred or kept on a node or on the console.
  2. One person, one vote. Each manager has a single key per entity, so each one counts as one vote in the KEL’s M-of-N threshold.
  3. Changing device. A KEL rotation replaces the key of the old device with that of the new one. It follows the entity’s approval flow: if the manager can act alone, they approve it from the old device; if approval is joint, the other managers needed approve it too. The old key is left without any signing power, and the entity issues a manager credential for the new device and revokes the old one.
  4. Losing the device. If a manager loses their device, the others remove its key with a rotation, according to the approval flow, and add the new one when they have it. If the remaining managers cannot reach the threshold, for example because the entity has a single manager, the entity recovers control with its backup key.
  5. Backup key. It exists so that an entity whose managers cannot reach the threshold is not locked out for good. It uses KERI’s reserve mechanism: the KEL only carries its hash, among the next keys, with enough weight to perform a rotation on its own, and normal rotations keep it in reserve without revealing it (partial rotation). It is not among the current keys, so it signs nothing in day-to-day operation.
    1. Creation. The console MUST generate it at the entity’s sign-up and show it once as a sheet to print: the entity’s name and AID, its private key as 24 BIP39 words (English list) and a QR code with the AID and the words, separated by spaces. The console MUST NOT keep it and, before finishing, MUST explain to the manager that whoever has the sheet can take control of the entity, so it must be kept like a recovery phrase, and ask them to confirm that they have kept it.
    2. Use. Whoever has the sheet opens the console in recovery mode (section “Signing in to the console”), signs in with their wallet and gives the console the sheet, by camera or by typing the words. The wallet generates a new manager key. The console prepares a recovery rotation that removes the keys the person indicates (the lost ones, or an attacker’s), adds the new one and sets a new backup key; the person approves it in their wallet and the console signs it with the sheet. The used sheet is left without any signing power, the console shows the new sheet to print and keeps neither, and the entity issues the person their manager credential. If the entity has also lost its nodes, the person chooses a new one as at sign-up, and the same rotation seals the new configuration (network, 6.4.2).
    3. Lost or stolen sheet. The managers replace it with a new sheet through a rotation, according to the approval flow. If it may have been stolen, they SHOULD do it at once: whoever uses it first takes control of the entity.
    4. Removal. An entity with several managers MAY remove the backup key with a rotation, according to its approval flow. The console SHOULD warn that, without it, if the managers cannot reach the threshold the entity is locked out for good.
  6. Post-quantum. While the KEL only accepts P-256 keys, pre-rotation protects control of the entity (cryptography, 4). A later version will allow ML-DSA manager keys and will require at least one post-quantum signature in each approval.
  1. The person signs in to the console with their wallet in creation mode and chooses to create an entity.
  2. They choose at least one node as the entity node and its entity store (network, 6.4), entering in the console the node’s binding code, which its operator gives them: that is the operator’s consent (interface, 10).
  3. The node generates the entity’s encryption, issuing and record keys in its protected key storage.
  4. The person’s wallet generates their manager key and its pre-rotation key for the new entity.
  5. The console generates the entity’s backup key and shows its sheet to print (section “Manager keys”).
  6. The console assigns the entity 3 mediators at random from the node directory (network, 6.1). It does not ask for witnesses, because Almena does not use them (network, 1.2).
  7. The console prepares the first entity configuration, with the entity node, its keys and its mediators (network, 6.4.2), and the KERI inception event: its AID, the manager key, the pre-rotation commitment, the hash of the backup key and the seal of that configuration. The manager signs it in their wallet and the entity node publishes both.
  8. When signing the inception event, the wallet opens its relationship with the new entity: it derives its did:peer:4 and sends a request for the manager credential. The entity issues the founding manager their manager credential over that relationship.
  9. Verification by Almena Trust is a later, separate step.
Entity sign-up

Recovering an entity. If an entity loses its nodes, its managers bind a new node from the console, with that node’s binding code. The new node generates new keys, and the managers approve from their wallets, with M of N, a new version of the configuration with the new node and its keys and without the previous ones (network, 6.4.2). If the entity store survived, the new node reattaches it; otherwise, the entity keeps only what is on the network and in the other parties’ receipts. If its managers cannot reach the threshold, it recovers control with its backup key (section “Manager keys”):

Recovery with the backup key
  1. From the console, a manager creates an invitation: an almena://invite link with a one-time code in its manager parameter (registries, 7), which travels out of band as a link or a QR code.
  2. The invitee opens it with their wallet, which creates or reuses their relationship with the entity, generates the manager key for that entity and sends the request for the manager credential with that code and that key (protocols).
  3. The entity checks the code and performs a KERI rotation that adds that key to its signers, approved with the current M-of-N threshold from the managers’ wallets.
  4. The entity issues the new manager their manager credential.
  5. Removing a manager is another rotation, plus the revocation of their credential.
  1. Camera. A console MUST be able to scan with the computer’s camera the QR code that a person shows at a counter (protocols).
  2. No personal use. The console does not open personal invitations or forms: those are for wallets.

Simplicity for non-technical persons comes first (P2), and that includes persons with disabilities.

  1. Reference. The wallet and the console SHOULD meet WCAG 2.2, level AA (W3C).
  2. Essential screens. The consent, approval and permission screens and the history MUST work with the system’s screen reader and font size, and MUST be explained in plain language, without codes or technical identifiers.
  3. Never a single way.
    1. Every QR code has its link next to it (section “Interaction input”).
    2. If the person cannot use biometrics, a PIN is always available.
    3. No warning depends only on colour or sound.
  4. Language. Forms are translated (BCP 47) and the wallet uses the person’s language (protocols, forms).
  5. Whoever cannot use a wallet can act through a representative (person life cycle, 3).

The general view is in the threat model.

  • Lost or stolen phone. Every sensitive operation asks for biometrics or a PIN, and the keys do not leave the chip. The person recovers with the platform’s synchronization or with their guardians, and asks the issuers for new copies.
  • Sign-in code of another console. An attacker could show a manager the sign-in QR code of a console they control. The wallet SHOULD remind the manager to scan only codes shown on their own screen. Even then, that console could only read and prepare; approvals are always signed apart.
  • The seed on screen. When the wallet shows the seed (for example, as BIP39 words), it SHOULD warn the person and prevent screenshots where the platform allows it.
  • Lock screen. Push notices are empty. The wallet SHOULD NOT show personal data in its notifications on the lock screen.
  • Guardians. They only hold a share and do not see the person’s data. The out-of-band verification is what stops someone posing as the person.
  • Shared computers. The console keeps nothing after the session, so using it on a computer that is not one’s own exposes no keys or data once the session is closed.

None for now.