Skip to content
Almena Network— version v2026-12-beta
Auto
English

Client specification

v2026-12-beta proposal. 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 each device SHOULD be hardware-backed and non-exportable. The person’s keys MAY be copied between their own devices according to the section “Several devices of a person”. 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, 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 keys (cryptography).
Local user verification Biometrics or system code before each sensitive operation.
End-to-end encrypted synchronization Copying a person’s keys and data between their devices.
System push notifications Waking the wallet up when it has messages (optional).
Proximity communication Direct transfer between nearby devices.
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 having the same account on several devices must be automatic or nearly so, without exporting to files.

  1. Same account, several mobile devices. A person MAY use their wallet on several mobile devices at once. What moves between them is the seed (from which the relationship keys come) and their data. Credentials do not move: each 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 one of these devices: it keeps nothing.
  2. Automatic synchronization. A wallet MAY synchronize the person’s keys and data between their devices through a platform synchronization service, provided it is end-to-end encrypted and the provider cannot read it. This also solves the loss of a device.
  3. Direct transfer. When there is no synchronization (another platform account, another system), the wallet MAY transfer the keys and data from one device to another:
    1. The new device shows a QR code.
    2. An already linked 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 devices. Copying keys between devices does not affect F2: it publishes nothing and does not link them to each other.
  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 each device, only the seed and the person’s data move. A synchronization of its own remains a future improvement.
  6. Managers. Manager keys and manager credentials are not synchronized or transferred: each device has its own (section “Manager keys”).
Adding a 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 each device’s secure chip.
  3. No words by default. The person does not see the seed. What is synchronized or transferred between their devices is the seed (previous section).
  4. Seed and data. The seed recovers the relationship keys, not the list of relationships or the credentials. That is why the wallet MUST also keep an encrypted backup of the relationships and of the list of credentials (to request new copies from the issuer), which can only be decrypted with the seed. If that backup is lost, the person can recover a relationship by contacting the entity again: the wallet derives the same did:peer:4 and the entity recognizes them.
  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 per device (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 attestation MUST state this, and each verifier decides whether to accept it (P10). Such a device MUST NOT hold manager keys or manager credentials: the person can still manage entities from another device that has a secure chip.
    4. Wallet attestation. The verifier MAY require proof that the holder key is in a legitimate wallet. The attestation states the algorithm of the holder key.
    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, each device has its own copies, 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, another device of their own. If the person still has another linked device, they recover from it (direct transfer).
  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 any old device of the person 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. After recovering the seed, the wallet restores the relationships and credentials from the encrypted backup, and asks each issuer for new copies of its credentials, because holder keys are not recovered.
  5. Manager role. Manager keys are not recovered with the seed. A manager who loses all their devices is added again by the other managers with a rotation, 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. 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”).
  1. Signed in the wallet. Every operation that requires a manager’s approval (publishing a form, a KEL event, adding a node or 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 make the threshold unreachable, and the offline backup key remains recommended.
  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 per device. A manager acts publicly on behalf of the entity, so their presentations do not need to be unlinkable: the entity issues one copy per device, bound to a holder key in that device’s secure chip.
  3. Removal. Removing a manager revokes their credential and removes their keys from the KEL with a rotation.
  1. One key per device and entity. Each manager has, on each 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. They MUST be composite ML-DSA-65 + ES256 if the device’s chip supports ML-DSA, and ES256 otherwise (cryptography). They MUST NOT be synchronized, transferred or kept on a node or on the console.
  2. One person, one vote. The KEL’s M-of-N threshold MUST use weights so that all the devices of the same manager count, together, as a single vote.
  3. Adding a device requires a KEL rotation approved by another manager in addition to the manager themself, and the entity issues a manager credential for the new device.
  4. Losing a device. If a manager loses a device, the others remove its key with a rotation. It is recommended (SHOULD) that the entity also have an offline backup key included in its threshold.
  5. Post-quantum threshold. If the managers with ES256 keys alone can reach the threshold, the entity is only as strong as those keys against a quantum computer. The console SHOULD warn of this. A later version 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). The node only accepts being bound with its operator’s consent; how that consent is given is up to the node.
  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 asks the network for the assignment of witnesses (custodians), because KERI includes them in the inception event, and assigns the entity 3 mediators at random from the node directory (network, 6.1).
  6. The console prepares the entity’s KERI inception event: its AID, the manager key, the witnesses, the pre-rotation commitment, the binding of the entity node, the authorization of its keys and the mailbox role of its mediators. The manager signs it in their wallet and the entity node publishes it.
  7. 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.
  8. 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. The new node generates new keys and the previous ones are revoked with M of N, signed from the managers’ wallets. 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.

  1. From the console, a manager creates an invitation, which travels out of band as a link or a QR code (OOBI).
  2. The invitee opens it with their wallet, which creates or reuses their relationship with the entity and generates the manager key for that entity.
  3. The entity 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 from another device 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.