Principles
This document has two parts. The foundational principles define what Almena is and are not negotiable. The design principles guide how the specifications are written.
Foundational principles take precedence over design principles. Among them there is no order of priority: they apply together, and F2 sets the limit of F1 (what is recorded for traceability can never break anonymity). If two design principles conflict, the one that appears first wins.
At a glance.
| Principle | In one line | Example | |
|---|---|---|---|
| F1 | Traceability | Relevant operations are recorded on the network and can be proven. | The bank records credential.issued; the person keeps the receipt. |
| F2 | Anonymity | Nobody outside a relationship can link data to the person. | A different did:peer:4 with each entity. |
| F3 | Security and non-replication | Each one keeps their data; it is shown, not copied. | The network stores no personal data. |
| F4 | Verify without exposing | Prove without revealing the data whenever possible. | age_over_18 instead of the date of birth. |
| P1 | The minimum that works | Small and implementable before complete. | When in doubt, an open question. |
| P2 | Simple for the person | Usable without technical knowledge. | The person never sees keys or files. |
| P3 | Node–client separation | They only know each other through the interface. | A wallet works with any conformant node. |
| P4 | Decentralization | Nothing indispensable; a central point is justified and has an exit path. | Mediators assigned at random. |
| P5 | The what, not the how | Observable behaviour, not internals. | No language or database is imposed. |
| P6 | Verifiable | Every requirement can be checked from outside. | The conformance tests. |
| P7 | Open standards | Adopt before inventing. | SD-JWT VC, DIDComm v2, KERI. |
| P8 | Security and privacy by design | Each document says what it exposes and to whom. | “Security and privacy considerations” sections. |
| P9 | Compatible evolution | Versions coexist. | GET /1.0/info and versioned types. |
| P10 | Each is responsible for its own | Almena connects; it does not arbitrate. | The entity decides what to revoke after an incident. |
Foundational principles
Section titled “Foundational principles”F1. Traceability
Section titled “F1. Traceability”Relevant operations between participants are recorded on the network, so that they can be proven later: who did what, when and with what result, to the extent that F2 allows.
In practice: each specification states which operations generate a record on the network and what that record contains. Every recorded operation carries a UTC timestamp, issued by a node with a synchronized clock; without reliable time there is no traceability.
F2. Anonymity
Section titled “F2. Anonymity”Nobody outside a pairwise relationship can link data to the holder. Only the two parties to the relationship know who the person in it is; for anyone else (another entity, a node, a network observer) the data and records of that relationship cannot be linked to the person or to their other relationships. That is why the person uses a different pairwise identifier in each relationship.
Anonymity protects natural persons. Entities are public by design: their DID document is public and their identity does not need protecting.
In practice: identifiers, records and messages MUST NOT allow anyone outside the relationship, not even a node, to link data to the person or to relate two of their relationships.
F3. Security and non-replication of data
Section titled “F3. Security and non-replication of data”Each participant owns their data and keeps it. Data is not replicated in other participants’ systems: it is presented through verifiable credentials when needed. The network stores no personal data.
In practice: if a design forces a participant to keep a copy of another’s data, it must be justified or discarded.
F4. Verify without exposing
Section titled “F4. Verify without exposing”Whenever possible, a participant must be able to prove something without revealing the data behind it: that they are of legal age without giving their date of birth, that they have a valid account without giving the number, or authorize a charge without handing over the account.
The classic verifiable credential, which contains the data, still exists, because some regulatory procedures require it (for example, a certificate of account ownership). But it is the minimum level, not the goal: Almena aims to go further and offer more security.
In practice: each exchange specification SHOULD allow, in this order of preference: a proof or a token that does not reveal the data; selective disclosure of only the necessary attributes; and, when regulation requires it, the full credential.
How F1 and F2 coexist (criterion). What is recorded on the network is signed by the entity, whose identity is public, so that anyone can verify it. The person’s side is only linkable and verifiable within the relationship, or by a third party (for example, an auditor) to whom one of the parties decides to provide the proof. The record model that applies this criterion is in network, section 7.
Design principles
Section titled “Design principles”P1. The minimum that works
Section titled “P1. The minimum that works”Each specification defines the minimum needed for it to work. A small specification that can be implemented is preferable to a complete one that nobody finishes.
In practice: when in doubt, leave it out and note it as an open question.
P2. Simple for the person using it
Section titled “P2. Simple for the person using it”The client, and especially the experience of the person using it, MUST be usable without technical knowledge. If something forces the person to understand keys, files or technical concepts, it is redesigned or automated. The principle does not apply equally to the whole platform: the entity manager is assumed to be better prepared, because they perform operations specific to an entity.
In practice: every operation of the person in the client is reviewed with someone without technical training in mind; entity management may require more knowledge.
P3. Separation between node and client
Section titled “P3. Separation between node and client”The node and the client only know each other through the node–client interface. Neither depends on how the other is built. A person’s keys and private data live only in their wallet, never on a node. An entity has one or more entity nodes, which act on its behalf with the authorization of its managers (M of N in the KEL): they keep its keys for daily use and are the only way into its entity store. The entity console keeps nothing and works through those nodes; the managers’ rotation keys stay in their wallets.
In practice: if implementing a client requires reading the node specification, the interface is incomplete.
P4. Decentralization
Section titled “P4. Decentralization”No node, organization or service is indispensable for the network to work. There are no operations that only a privileged participant can perform.
In practice: any design that introduces a central point (a single registry, a mandatory bootstrap server, a master key) must be explicitly justified or discarded. If P1 leads to accepting one for simplicity, it MUST be documented together with the way to remove it later. Almena Trust is not a central point: it only verifies certain entities and the network works without it (see vision).
P5. Specify the what, not the how
Section titled “P5. Specify the what, not the how”The specifications describe observable behaviour: which messages are exchanged, which results are expected and which errors exist. They do not impose languages, libraries, databases or internal architectures.
In practice: two implementations that are very different inside are equally valid if they behave the same from outside.
P6. Verifiable
Section titled “P6. Verifiable”Each normative requirement (MUST, SHOULD) must be checkable from outside the implementation. If it cannot be checked, it is not a useful requirement.
In practice: the medium-term goal is for each specification to be accompanied by conformance tests.
P7. Reuse open standards
Section titled “P7. Reuse open standards”When a mature open standard already exists that solves a problem, it is adopted instead of inventing one, with a preference for those of major bodies such as W3C. What Almena defines on its own is published as part of its standard, open and reusable. Even so, common sense prevails: if a standard clashes with the foundational principles or adds complexity without benefit, it is possible to depart from it by documenting the reason.
In practice: before defining a format, a protocol or a cryptographic scheme, check whether one already exists.
P8. Security and privacy by design
Section titled “P8. Security and privacy by design”It is the application of F2 and F3 to each document. Each specification states which data it exposes, to whom, and what happens if a participant behaves maliciously.
In practice: each normative specification includes a Security and privacy considerations section.
P9. Compatible evolution
Section titled “P9. Compatible evolution”The network will have nodes and clients of different versions at the same time. The specifications must allow them to coexist and allow capabilities to be added without breaking existing ones.
In practice: the node–client contract includes from the start a versioning or capability negotiation mechanism.
P10. Each is responsible for its own
Section titled “P10. Each is responsible for its own”Almena is a gateway for verified interconnection and communication, not an arbiter. Each participant decides and answers for what is theirs: each entity, for how it produces its credentials, how it verifies information, its approval flow and its availability. The network only guarantees what is its own: that identities, messages and records are verifiable.
In practice: the specification does not impose on entities how they must do their work; it is limited to what is needed for the interconnection to be verifiable. The client MAY warn of a risk, but it does not block decisions that are the participant’s responsibility.
Open questions
Section titled “Open questions”None for now.