The network
What the Almena network is, what information it contains and how that information is guaranteed to survive even if nodes or entities disappear.
1. Available from any node, persisted in some
Section titled “1. Available from any node, persisted in some”Two properties must be distinguished:
- Availability. The network’s information MUST be queryable from any node. Whoever asks a node does not need to know where the data is stored.
- Persistence. The information is not stored on every node, but on a subset of custodian nodes. A node that does not keep custody of a piece of information knows how to locate it and obtain it from whoever does.
1.1. Reference model: content addressing
Section titled “1.1. Reference model: content addressing”Almena adopts the model of networks such as IPFS, but on its own network: it does not use the public IPFS network or any other external network or service (self-sufficiency principle, see vision).
- Each piece of information is identified by its content (a hash), not by the node where it is. That way anyone can check that what they received is what they asked for.
- When a node is asked for something it does not have, the node locates it, fetches it and serves it, and may keep a temporary copy (cache).
Almena adds what IPFS does not guarantee on its own:
- Mandatory persistence. In IPFS a piece of content disappears if nobody pins it (pinning). In Almena, custody on a minimum number of third-party nodes is mandatory (section 3) and custodians are assigned by the network (section 4). The higher persistence tiers planned for the future (section 5) would play a role similar to pinning services or Filecoin, but certified with a verifiable credential.
- Information that changes. IPFS is designed for immutable content, but a DID document is updated and traceability records grow. Almena solves this as described in 1.2.
1.1.1. Replication policy
Section titled “1.1.1. Replication policy”No node is required to store all of the network’s information, so that each node’s load does not grow with the size of the network:
- k custodians per piece of data. Each piece of information is stored on k custodians, assigned according to section 4. k is the minimum of the basic persistence tier (section 5); higher tiers increase it.
- Location with a distributed hash table (DHT). Each node knows only part of the network and knows which nodes to forward a request to. Locating a piece of data takes few hops even if the network has many nodes.
- Any node answers. If it does not have the data, it locates it in the DHT, fetches it and serves it. It MAY keep it in cache for a limited time. That way the most requested data spreads by itself and rarely requested data does not take up extra space.
- Whoever receives verifies. All data is verified by hash and signature, whether it comes from a custodian or from a cache.
- Recommended stack. libp2p is recommended (SHOULD) for transport and Kademlia as the DHT. Each node’s network identifier (PeerId) MUST be bound to its KERI identity (6.2): the node signs with its AID the association with its PeerId, so that nobody can impersonate it in the DHT.
- Text search. A DHT locates data by its identifier, not by its content. Searches (for example, in the entity directory) are handled by Almena Archive Nodes (section 6).
The public entity directory is the first case of this policy: each entry is a piece of data signed by the entity (its did:keri, name, sector, forms and a link to its Almena Trust credential), stored on k custodians and locatable from any node.
Entity directory entry. Signed by the entity, it contains: its did:keri; its legal name and, optionally, a trade name; its country (ISO 3166-1) and sector (UN ISIC classification, which is global); its web domain; the languages in which it serves; its forms (for each credential type, the hash of the active version); the link to its Almena Trust credential, if it has one; and the publication date. Mailboxes do not go in the entry, because they are already in the KEL.
1.2. Mutable information
Section titled “1.2. Mutable information”- Entity identity: KERI KEL (see vision, 5.2). The current state of an entity’s keys is given by its key event log (KEL): a signed chain of events (inception, rotation, witness changes) that anyone can verify from the first one. The KEL’s witnesses are custodian nodes assigned by the network (section 4), and watchers detect duplicity (two different versions of the same history).
- Traceability records: append-only chain linked by hash. Each record is signed and contains the hash of the previous record in the same chain. That way an intermediate record cannot be altered or deleted without breaking the chain, and anyone can check its integrity. Records can only be added, never modified. Their content is described in section 7.
A node’s cache does not make it a custodian: a cached copy can disappear at any moment; only assigned custody counts for persistence.
2. What information the network contains
Section titled “2. What information the network contains”- Entities’ KELs (their identity and their keys, section 1.2).
- The traceability records of signed operations.
- The attestations issued by Almena Trust (and future verification entities). They are published on the network, linked to the KEL of the verified entity.
- The public entity directory, from which holders find entities and start a relationship (interface, 3.1).
- The node directory (section 8).
- Issuers’ revocation lists (Token Status List), signed with their issuing key.
- The forms published by entities.
- The metadata of credential types (
vct), published by entities and by Almena (vision, 5.2).
It never contains personal data (see vision).
3. Traceability does not depend on the entity’s infrastructure
Section titled “3. Traceability does not depend on the entity’s infrastructure”An entity’s records MUST NOT depend on the nodes that entity operates or on its mediator. If one of those nodes disappears, or the entity itself ceases to exist, its information and its traceability MUST remain available on the network, because they must be usable in an audit or in a request for information.
That is why an entity’s information MUST be persisted on nodes unrelated to it.
4. Custodian assignment
Section titled “4. Custodian assignment”The entity does not choose which nodes keep custody of its information. If it could choose them, it could ask them to delete records.
In v2026-12-beta custodians are assigned with the DHT, without draws or epochs.
- The k closest. The custodians of a piece of data are the k nodes (5.1) whose identifier is closest to the data’s hash according to the Kademlia distance (1.1.1). Since the hash depends on the content, the entity does not choose where it is stored.
- Eligible nodes. Only nodes that have passed the entry period (6.2.2) and meet the minimums (5.1) count. Never an entity node of the entity itself (6.4).
- Diversity. When walking the closest nodes, a node is skipped if there is already another custodian in the same network (address range or autonomous system) or behind the same relay (6.3). They SHOULD also be in different regions.
- Re-replication. If a custodian has emitted no heartbeats for 1 hour (5.1), the next closest node copies the data from the other custodians. That way there are always k copies.
- Why this is enough. Data is signed, so a custodian cannot forge it; at most it could withhold it. That is mitigated by the k copies, caches (1.1.1) and Archive Nodes (6).
- Future (out of v2026-12-beta). Assignment by verifiable randomness with a public seed per epoch and periodic rotation of custodians, so that not even by generating many node identities can anyone get close to specific data.
flowchart LR
D["A piece of data is published (its hash H)"] --> N["Next eligible node closest to H (Kademlia distance), skipping nodes on the same network or relay as a chosen custodian and entity nodes of the publisher"]
N --> K["It becomes a custodian. k reached? (k = 5)"]
K -- "no" --> N
K -- "yes" --> END["Done. If one emits no heartbeats for 1 h, the next closest copies the data"]5. Persistence tiers
Section titled “5. Persistence tiers”- There is a mandatory basic tier: all the network’s information is replicated on a minimum number of third-party custodian nodes.
- Future (out of v2026-12-beta): higher tiers (more custodians, more spread, more availability), which an entity could contract.
- Each higher tier is certified with a verifiable credential about the entity, which the entity can present to its users as a sign of greater trust.
- If the entity stops having it, it immediately loses that credential, and its information returns to the basic tier. It never goes below the basic tier.
Higher tiers will be defined when they come into scope (future).
5.1. Initial values for v2026-12-beta
Section titled “5.1. Initial values for v2026-12-beta”These values are provisional: they will be validated with performance tests and may be adjusted without changing the rest of the specification.
| Parameter | Value |
|---|---|
| k (custodians per piece of data in the basic tier) | 5 |
| Maximum duration of a cache (1.1.1) | 24 h |
| Minimum disk of a node for custody | 10 GB |
| Minimum upload bandwidth | 2 Mbps |
| Minimum availability, measured by monitoring between nodes | 95 % |
| Archive Node | No fixed minimum; it must be able to store the full copy. |
| Node heartbeat (6.2) | Every minute |
| Time without heartbeats before re-replicating a custodian’s data (4) | 1 h |
| Time T without heartbeats before an identity can be taken back (6.2.1) | 24 h |
| Entry period of a new node (6.2.2) | 7 days |
| Cap on mailboxes per Mediator Node | To be set with performance tests |
6. The node and its complementary functions
Section titled “6. The node and its complementary functions”Node and entity are decoupled. A node is the way to contribute resources to the network.
Every node has the base node functions. In addition, it MAY enable one of the complementary functions in the table: Mediator, Archive, Push or Relay (also called node types). A node MUST NOT enable more than one.
Separately, a node MAY be configured as an entity node (6.4). This is independent of the above: it has to do with giving persistence to an entity, not with what its operator contributes to the network.
| Function | What it does, in addition to the base node | Resources it contributes |
|---|---|---|
| Almena Node (base) | Own identity and heartbeats (6.2), participation in the DHT, answering queries (section 1), public read access to the network (gateway, section 8) and custody of the information the network assigns to it (sections 3 to 5). | Minimum disk, bandwidth and availability. |
| Almena Mediator Node | Hosts the DIDComm mailboxes of persons and entities. Transport only: it does not process or store anything outside the mailbox (6.0, interface). | Hosted mailboxes, bandwidth and availability. |
| Almena Archive Node | Stores a full copy of the network’s information and builds a search index over it (for example, of the entity directory, section 1.1.1). It serves as a safety net if the k custodians of a piece of data are lost and as a synchronization source for new nodes. | Disk, compute, bandwidth and availability. |
| Almena Push Node | Notifies a publisher’s wallets (optional, interface, 7). | Notices sent. |
| Almena Relay Node | Gives Internet access to nodes that cannot be exposed directly (for example, behind NAT or a firewall), forwarding their traffic (6.3). | Bandwidth and availability. |
- Every node is an Almena Node. Every node MUST offer the availability of section 1, MUST offer public read access (section 8), directly or through a Relay Node, and MUST accept the custody the network assigns to it. That is why every node MUST contribute a minimum of resources (section 5.1).
- A single complementary function per node. Whoever wants to contribute several deploys several nodes, each with its own identity.
- Archive Node. It is voluntary: anyone MAY deploy one (section 9). That way the network does not depend on a single operator to be complete. Mailboxes MUST NOT be part of the archive: their messages are temporary and live only on the Mediator Node. Content: everything public on the network: KELs, entity directory, Almena Trust credentials, forms, revocation lists, activity records and node entries. Never mailboxes or anything private. In v2026-12-beta it is stored in full, without sharding.
- Searches. An Archive Node cannot forge results, because each entry is signed, but it could omit some. That is why whoever searches SHOULD query several.
- A Mediator Node can host mailboxes of many persons and entities, up to its cap (5.1).
flowchart TB
base["Almena Node (base)<br/>identity, heartbeats, DHT,<br/>gateway, custody"]:::base
subgraph one["At most one complementary function"]
direction LR
med["Mediator Node<br/>DIDComm mailboxes"]:::mediator
arc["Archive Node<br/>full copy + search index"]:::archive
push["Push Node<br/>notices to wallets"]:::push
rel["Relay Node<br/>access for unexposed nodes"]:::relay
end
ent["Entity node<br/>(independent setting)"]:::entity
base --> med
base --> arc
base --> push
base --> rel
base -.-> ent6.0. The mediator is transport only
Section titled “6.0. The mediator is transport only”A Mediator Node is a transport-only piece: it connects two parties and nothing more.
- What it does. It receives encrypted DIDComm messages (forward), places them in the corresponding mailbox and delivers them when the recipient collects them.
- What it does not do. It cannot read the messages, which are end-to-end encrypted. It MUST NOT process them, transform them or apply business logic. It MUST NOT keep them beyond the mailbox: they are deleted when receipt is confirmed or when they expire (interface, 4).
- Where the logic is. All the logic (forms, credentials, decisions) is at the ends: the person’s wallet and the entity’s bound nodes and clients (6.4).
- Each receives at its own. Persons and entities have their own mediators (6.1). Each party receives at its mediators and delivers at the other’s.
- Person–entity and entity–entity. The entity leaves messages for the person at one of the person’s mediators, and the person leaves them for the entity at one of the entity’s. Between two entities, the same.
- Person–person. It is deliberately out of v2026-12-beta (vision), for scope reasons. Since persons already have mediators, it will not require changes to this model.
sequenceDiagram
%% kinds: W=wallet MP=mediator ME=mediator EN=entity
participant W as Person's wallet
participant MP as Person's mediator
participant ME as Entity's mediator
participant EN as Entity node
W->>ME: Encrypted message (forward)
ME->>ME: Places it in the entity's mailbox (cannot read it)
EN->>ME: Collects its messages
ME-->>EN: Delivers and deletes on confirmation
EN->>MP: Encrypted reply (forward)
MP->>MP: Places it in the person's mailbox for this relationship
W->>MP: Collects its messages
MP-->>W: Delivers and deletes on confirmation6.1. Mediator assignment
Section titled “6.1. Mediator assignment”Each person and each entity receives at its own mediators, which are assigned to it at sign-up.
- Three at random. At sign-up (onboarding), the wallet for a person and the console for an entity assign by default 3 Mediator Nodes chosen at random from all those in the node directory (section 8). They SHOULD be in different networks.
- No changes by choice. In v2026-12-beta neither the person nor the entity can choose to change their mediators; one is only replaced automatically when it disappears (see “Automatic replacement”).
- How an entity’s mediators are declared.
- The entity issues a signed authorization of the KERI
mailboxrole for each one, with its current key according to its KEL. To withdraw one, it issues an authorization that removes the role. The most recent valid authorization prevails. - The mediator node signs its own endpoint (the service URL) with its node key.
- Discovery is done through KERI OOBI (Out-Of-Band Introduction).
- When the entity’s did:keri is resolved, its mediators appear as
DIDCommMessagingservices in its DID document.
- The entity issues a signed authorization of the KERI
- A person’s mediators are only sent to the other party inside each relationship (first message and
mailbox-change), not in the did:peer:4 document, so that the identifier stays stable. They are never published on the network. - No entity or person needs to run a node of their own.
- Sender behaviour. If it cannot deliver a message because the recipient’s mediators do not respond, the client SHOULD store it, retry later and warn that the recipient is not available.
- Distribution. An entity uses its 3 mediators at once. A person hosts each relationship on only one of its 3, chosen at random, so that no mediator sees more than part of their relationships (F2).
- Automatic replacement. If one of the mediators disappears, the wallet (for a person) or the entity node (for an entity) replaces it with another chosen at random, without user intervention, and announces the change:
- for a person, with a mailbox change message to each affected entity, delivered at the entity’s mediators;
- for an entity, with a new
mailboxauthorization in its KEL, which the entity node prepares and the managers approve from their wallets.
6.2. Node identity
Section titled “6.2. Node identity”- Own identity. A node has its own identity: a transferable KERI AID, derived from the public key that the node MUST generate on its first start. It is unique by construction and does not need any central registry.
- Independent of entities and persons. A node connects to the network and contributes resources without having any entity or person configured.
- Stable. The node keeps its identity across connections. If it is deleted, the next start generates a new identity, and the history of the previous one is lost.
- Rotation. Since the AID is transferable, the node can rotate its key without changing identifier.
- Heartbeats. An active node MUST periodically emit a signed heartbeat with an increasing counter. Peer monitoring records it (section 9).
stateDiagram-v2
direction TB
[*] --> New: first start, publishes its entry
New --> Eligible: 7 days of proven availability
Eligible --> Drifted: clock more than 1 s from the median
Drifted --> Eligible: back within the margin
Eligible --> Silent: stops emitting heartbeats
Silent --> Eligible: heartbeats again
Silent --> [*]: 24 h without heartbeats (entry expires, identity recoverable)
note right of Silent: After 1 h its custody data is re-replicated
note right of Drifted: Writes no records and keeps no custody6.2.1. Recovery by the owner
Section titled “6.2.1. Recovery by the owner”This is an exceptional, bounded case: whoever has the identity files of a node that has stopped working brings up another one with that identity (for example, from a backup), instead of generating a new one. It is not a migration or high-availability mechanism.
“Owner” does not imply any registry: the network does not know who operates a node, it only recognizes whoever has its identity files. Safeguarding them is the responsibility of whoever has them; if they lose them and someone else uses them, the network cannot tell the difference.
- Before operating, the node MUST check with several nodes that the identity is not active, that is, that its last heartbeat is older than a time T. If it is active, it MUST NOT start with it.
- If the old node reconnects and sees more recent heartbeats signed with its identity, it MUST stop.
- If two copies operate at once, the network treats it as duplicity and suspends the identity.
- After recovery, the key SHOULD be rotated.
6.2.2. Brakes against multiple identities (Sybil)
Section titled “6.2.2. Brakes against multiple identities (Sybil)”Creating node identities costs nothing, so the network does not trust the number of identities, but what each one proves:
- Seniority and availability. A new node can only be a custodian after a period of availability proven by peer monitoring.
- Proven resources. Trust in a node depends on storage proofs and bandwidth receipts (section 9). A thousand identities are worth no more than one if they do not contribute a thousand times the resources.
- Network diversity. Custodian assignment avoids nodes from the same network (section 4).
6.2.3. Node clocks
Section titled “6.2.3. Node clocks”Node time must be as close as possible to real time, and nodes monitor each other so that none pollutes the network with false times.
- Source. Each node MUST synchronize its clock with authenticated NTP (NTS) against at least 3 independent sources.
- Accuracy. The goal is to be within 100 ms of real time. Above 1 s the node is considered drifted.
- Cross-monitoring. Each heartbeat carries the node’s time, signed. Whoever receives it compares it with its own, discounting half the round-trip time. Each node computes its drift with respect to the median of at least 5 neighbours.
- Drifted node. If a node drifts more than 1 s from the median:
- it MUST stop writing records and acting as a custodian until it is corrected;
- its neighbours generate signed evidence for monitoring between nodes (conformance, layer 3);
- it returns to normal after several consecutive heartbeats within the margin.
- Rejection. A custodian MUST reject a record whose time differs by more than 1 s from its own.
- Mobile devices. Nothing is required of wallets: the freshness of a presentation is guaranteed by the
nonce.
6.3. Almena Relay Node
Section titled “6.3. Almena Relay Node”It allows nodes that cannot receive direct connections from the Internet to take part in the network. The pattern is that of TURN or libp2p circuit relays.
- No access to content. Traffic between a node and its peers MUST be end-to-end encrypted through the relay. The relay only forwards; it cannot read or alter what passes through it, because everything is signed.
- Several relays. A node behind a relay SHOULD use two relays chosen at random from the node directory, in different networks. How many nodes each relay serves is decided by its operator according to its capacity and stated in its entry (8.1). Otherwise, a relay that fails or stops forwarding its heartbeats would make it look down.
- Heartbeats. Heartbeats and storage proofs are signed by the node itself, so the relay cannot forge them; it could only withhold them, which is what using several is for. The bandwidth it forwards is measured with receipts signed by the nodes it serves.
- Custody. A node behind a relay keeps custody like any other.
- Custodian diversity. For network diversity (section 4), the nodes that depend on the same relay count as the same network: if that relay goes down, several copies of a piece of data must not go down at once.
- Public read access. A node behind a relay offers its read access through the relay’s address.
- Metadata. The relay sees whom the node communicates with and how much traffic it moves. If a Mediator Node runs behind a relay, the relay also sees the IP addresses of the wallets that collect from mailboxes; that is why a Mediator Node SHOULD be exposed directly.
6.4. Entity node
Section titled “6.4. Entity node”Every entity MUST have at least one entity node: a node bound to the entity that acts on its behalf. It collects the entity’s messages from its mailboxes, decrypts them, keeps its keys for automatic use and is the only way into its private data. The entity console works through it (interface, 10).
The entity store. The entity’s private data (decrypted messages, relationships, issued credentials, credentials it holds, forms in preparation and the internal audit log) lives in its entity store. The store is a role, not a technology:
- the entity node itself MAY be the store, keeping the data in its own storage; or
- the store MAY be a storage under the entity’s control outside the node, which the node accesses.
In both cases only the entity nodes access the store: neither the console, nor the managers’ wallets, nor the network. The data MUST be encrypted at rest with keys that only the entity nodes hold, and it never goes to the network.
Being an entity node has nothing to do with contributing resources to the network. An entity node may or may not have a complementary function (section 6), and which one it has bears no relation to the entity. What the network measures is only what the node contributes as a base node and with its complementary function.
Rules:
- Independent identity. The node’s identity (6.2) does not change when it is bound or unbound, and it is not derived from the entity.
- Strict separation. The entity’s keys and data MUST be separate from those the node uses on the network. Nothing of the entity is kept in custody, archived or replicated on the network.
- Neutral for the network. The network neither rewards nor penalizes a node for being bound to an entity. The binding does not count as a contributed resource.
- Authorized by the entity. The binding is authorized by the entity with its M-of-N threshold, through an event in its KEL, and can be revoked the same way. The node only accepts being bound with its operator’s consent.
- Redundancy. An entity MAY bind several nodes at once so as not to stop if one fails (section 6.4.1).
- Independent of the mediator. A node bound to an entity does not have to be its Mediator Node: the mediator stores mailboxes with encrypted messages; the entity node handles the already decrypted data.
- Decrypted data only at the ends. The entity’s decrypted messages and data MUST exist only on its entity nodes and in its entity store. The console only shows them during a session and keeps nothing. They never pass through the network or the mediator.
- A single entity for the console. The console sees a single entity, regardless of how many entity nodes it has behind it; the distribution among nodes is internal.
- Keys for daily use. The entity’s encryption, issuing and record keys, and the key with which it acts as a holder, are generated and kept by the entity node in protected key storage (a hardware security module or equivalent, from which they cannot be extracted). They are generated during the entity’s sign-up, both when creating it and when recovering it, and they are authorized and revoked with M of N in the KEL (key inventory). Managers do not sign each credential or each record.
- No rotation keys. The KERI rotation keys of the entity (its managers’ keys) MUST NOT be on the node: they stay in the managers’ wallets. The node prepares KEL events and approvals, and the managers sign them (client).
6.4.1. Several bound nodes: high availability
Section titled “6.4.1. Several bound nodes: high availability”- One encryption key per node. Each bound node has its own encryption key (a hybrid pair, P-256 and ML-KEM-768), published in the
keyAgreementof the entity’s DID document and authorized with M of N in its KEL. No private key is shared between nodes. - Encryption for all. The holder encrypts each message for all those keys at once (JWE with several recipients). Any bound node can decrypt it with its own, so if one goes down the others can still read new messages.
- Collection without duplicates. All bound nodes can collect from the mailbox, but only one processes each message: it is identified by its id and marked as taken in the entity store. A message MUST NOT be deleted from the mailbox until it is stored in the entity store: in a shared external store, or on at least two bound nodes if each is its own store (or on the only one there is).
- Coordination between bound nodes. How the bound nodes share or replicate the entity store and decide which one processes each message is internal to the entity and is up to the implementation. If they communicate with each other, they MUST do so through an end-to-end encrypted channel, separate from the network, with hybrid key agreement (cryptography, 3).
Compatibility with decoupling. It remains true that node and entity are decoupled: a node does not belong to an entity and its role on the network does not depend on it. Being an entity node is an additional, optional role, authorized by the entity and revocable, not a complementary function.
7. Operation records
Section titled “7. Operation records”There are two families of records, kept separate:
| Family | What it captures | Where it lives | Who has access |
|---|---|---|---|
| Activity (7.1) | What happens in a person–entity or entity–entity conversation: creation and ending of a relationship, issuance and revocation of a credential, verified presentation, and issuance, redemption and revocation of a token. | On the network, on k custodians. | Public. It only contains codes, timestamps, keys and salted hashes; only one of the parties to the conversation can complete the information. |
| Entity management (7.2) | The KEL (managers and devices, rotations, mediators, entity nodes, authorized keys) and the internal audit log: which manager approved what. | The KEL, on the network. The internal audit log, on the entity nodes. | The KEL is public. The internal audit log is private: the managers and an auditor to whom the entity gives access. |
Immutable and traceable. In both families, no record can be deleted or modified without it being detected (7.3).
7.1. Activity records
Section titled “7.1. Activity records”It applies the criterion of principles (“How F1 and F2 coexist”): what is public is signed by the entity; what concerns the person is only verifiable within the relationship or by whoever receives the proof from one of the parties.
- Who writes and signs. The record is written by the entity node (6.4), never by the mediator, which is transport only (6.0), and it is signed by the entity, with a key declared in its public DID document. That way anyone can verify it.
- What it contains.
- The operation type (a code in English).
- The timestamp in UTC.
- A commitment over the details of the operation: a salted hash. Without the salt, nobody can know which relationship or which person it refers to.
- The hash of the previous record in the chain (section 1.2).
- Duplicity. KERI watchers can apply the same duplicity detection to record chains: an entity that presents two different chains is exposed.
- Receipt for the person. For each recorded operation, the person receives in their wallet the full record, already signed by the entity, and the salt. With it they can prove that the operation existed. They reveal the salt only to whomever they want, for example an auditor.
- Publication by either party. If after 24 h the record is not on the network, the wallet MUST publish it itself. The signature is the entity’s, so it is equally valid, and it contains nothing of the person. That way an entity cannot omit a record.
- Granularity. There is one chain per entity–entity node pair. That way no forks occur when an entity with several entity nodes records operations at the same time, and the chain does not group operations by relationship.
- Personal data. A record contains no personal data or pairwise identifiers in the clear.
7.1.1. Operation codes
Section titled “7.1.1. Operation codes”| Code | Operation |
|---|---|
relationship.created |
Creation of a relationship. |
relationship.ended |
Ending of a relationship. |
credential.issued |
Issuance of a credential. |
credential.revoked |
Revocation of a credential. |
presentation.verified |
Presentation of a credential verified by the entity. |
token.issued |
Issuance of an authorization token. |
token.redeemed |
Redemption of an authorization token. |
token.revoked |
Revocation of an authorization token, by the issuing bank or at the person’s request. |
audit.anchored |
Anchoring of the internal audit log (7.3). |
record.voided |
Voiding of an earlier record due to an error (7.3). |
7.1.2. Record and receipt format
Section titled “7.1.2. Record and receipt format”- Record (public, signed by the entity with a current key of its KEL): the entity (did:keri) and the entity node that keeps the chain; the sequence number in the chain and the hash of the previous record; the operation code and the UTC time; and the commitment, a SHA-256 of the salt plus the details of the operation.
- Details (only inside the commitment, never in the clear): the two parties of the relationship, the message thread and the reference specific to each operation (the position in the status list of a credential, or the reference of a token).
- Receipt (only for the other party): the signed record, the salt and the details. With them the commitment can be checked.
- Computing the commitment:
SHA-256(salt ‖ JCS(details)). The salt is 32 random bytes, different in each record; JCS is the JSON canonicalization of RFC 8785; the twopartiesare sorted alphabetically. The salt and the commitment are written in base64url without padding. There is a test vector in the example of a payment with a token. - Technical records:
audit.anchoredcarries in the clear the hash and the number of the last entry of the internal audit log;record.voidedcarries in the clear the number of the record it voids. Neither contains personal data.
flowchart RL
R3["Record n+1<br/>prev = hash of n"] -- "prev" --> R2["Record n<br/>prev = hash of n−1<br/>code · UTC time · commitment<br/>signed by the entity"] -- "prev" --> R1["Record n−1"]Who sees what.
| Who | What they have | What they can do |
|---|---|---|
| Anyone (nodes, observers) | The record: entity, code, time, commitment. | Verify the signature and the chain. They cannot know who it refers to. |
| The other party (person or entity) | The receipt: record, salt and details. | Prove the operation and check the commitment. |
| Whoever receives the receipt from a party | The same receipt. | The same: only that operation, nothing more. |
| Nobody, after the salt is deleted | The record alone. | Nothing: it becomes anonymous (7.4). |
7.2. Internal management audit log
Section titled “7.2. Internal management audit log”- What it captures. Each management action that does not go in the KEL: publishing or withdrawing a form, approving an operation, inviting a manager, configuring an entity node, signing in to the console.
- Who signs. Each entry is signed by the manager who performed or approved the action, with their manager key from their wallet, and the entity node chains it. Console sign-ins are recorded by the entity node itself.
- Where it lives. In the entity store (6.4). It never goes to the network in the clear.
- Access. The managers, and an auditor to whom the entity gives a copy or access.
7.3. Immutability and traceability
Section titled “7.3. Immutability and traceability”No record, of either family, can be deleted:
- Hash chain. Each record contains the hash of the previous one in its chain and is signed. Deleting or changing one breaks the chain.
- Append only. Implementations MUST NOT offer any operation to delete or modify records. An error is corrected with a new record that voids the earlier one.
- Copies outside the entity’s control. Activity records live on k custodians assigned by the network (section 4), so the entity cannot ask for them to be deleted.
- Anchoring of the private audit log. The entity node publishes on the network, every 24 h and also after each change in the KEL, in the activity chain, an anchoring record with the hash of the last entry of the internal audit log and its sequence number. That way the content remains private, but any later deletion or rewrite is detected by comparing with the anchor.
- Duplicity. KERI watchers detect an entity that presents two different versions of a chain or of its KEL.
- Receipts. The person keeps the signed records of their operations and publishes them if the entity does not (7.1). If the entity puts a different record in that same position of its chain, there are two records signed by it in the same slot: a duplicity that watchers detect and that proves the fraud.
7.4. Activity records and GDPR (basis pending expert review)
Section titled “7.4. Activity records and GDPR (basis pending expert review)”For whoever does not have the salt, an activity record is anonymous. But the entity and the person do have it, so for them it is pseudonymized data, which the GDPR still considers personal. Therefore:
- Minimization. A record only carries an operation code, the time, the entity’s keys and a salted hash. Never names, did:peer or data in the clear.
- Long, random salt. The salt MUST be at least 256 bits long and random, so that it cannot be guessed by trying values (dictionary attack).
- Erasure by destroying the salt. If the person exercises their right to erasure, the entity and the wallet MUST delete the salt. The record on the network can no longer be associated with anyone, becomes anonymous and can stay in the chain without breaking immutability (7.3).
- Legal obligation. If the entity must keep the proof by law, it keeps the salt for as long as that obligation lasts.
This justification is a design basis. It must be reviewed by a data protection expert before the specification is published.
8. Access to the network: gateways and bootstrap list
Section titled “8. Access to the network: gateways and bootstrap list”There is no single mandatory URL for accessing the network: that would be a central point (P4).
- Gateways (every node). Every node MUST offer public read access to the network: it is a base node function, not a node type. A directly exposed node SHOULD use its own domain and TLS certificate; one behind a relay offers it through the relay’s address (6.3). Each node declares its read URL in the node directory.
- Node directory. See 8.1.
- Bootstrap list. Wallets, entity consoles and nodes MUST ship with a bootstrap list with gateways from several different operators. It is only an entry point for finding the network: it grants no permissions and has no authority. Afterwards it is updated from the node directory.
- Use. Whoever queries SHOULD try several gateways, choose at random or by latency and switch to another if one fails.
- No trust in the gateway. Everything a gateway returns is verified by hash and signature (section 1.1). A gateway cannot lie: it can only fail or refuse to answer, and that is why several are used.
- Read only. Gateways are for reading the network. Mailboxes remain at each person’s and entity’s mediators (interface).
8.1. Node directory
Section titled “8.1. Node directory”Open entry. Anyone can bring up a node. Nobody signs or controls the directory: the network’s integrity comes from its rules (entry period, monitoring between nodes, clock, custody on k nodes).
- Own entry. Each node publishes in the DHT a signed entry with its KERI identity: its address and read URL, its complementary function if it has one, its entry date and, for information only, its implementation and version. Nobody can publish or change another node’s entry.
- The directory is the sum of the entries. Any node gathers them and serves them at
GET /1.0/nodes(interface, 6). Whoever receives them verifies each one’s signature. - Expiry. An entry expires after 24 h and the node renews it. If it does not, it disappears from the directory on its own.
- Joining. Starting and publishing the entry is enough. During the entry period (5.1) the node works, but it is neither a custodian nor a mediator.
- Voluntary withdrawal. The node publishes a signed withdrawal entry.
- Inactivity. A node without heartbeats for 24 h is marked as inactive and is not used to assign mediators or custodians. If it comes back, it rejoins without repeating the entry period.
- Checking what it declares. If a node declares a function and does not respond as such, its neighbours note it as non-compliance and it stops receiving assignments.
- Temporary exclusion. A node with several pieces of misbehaviour evidence in a short time is excluded from custody and mediation for a period, without any authority having to expel it.
Entry content. Besides what item 1 lists, the entry carries the protocol versions the node speaks and, for a Relay Node, how many nodes it accepts.
Pattern references: Bitcoin’s DNS seeds and IPFS’s list of public gateways.
Friction with self-sufficiency. Domains (DNS) and TLS certificates depend on external services. This is mitigated with several domains from different operators and with verification by hash and signature, which makes trust independent of DNS and of the certificate.
9. Contributed resources
Section titled “9. Contributed resources”The network is built with the resources its node operators contribute, altruistically or in their own interest. In v2026-12-beta there are no rewards, payments or fees (see “Future” below).
- Verifiable metering (kept). Resources are measured with proofs that others can check, not with what the node itself declares. This serves to detect non-compliance, choose reliable custodians (section 4) and curb fake identities (6.2.2):
- Custodied disk: periodic storage proofs over the assigned information.
- Bandwidth: receipts signed by whoever receives what is served (other nodes, wallets or gateways).
- Availability: checks by other nodes during mutual monitoring (conformance, layer 3).
- Hosted mailboxes: mailboxes the node hosts for persons and entities.
- Storage proofs.
- Random challenge. Once a day, a randomly chosen neighbouring node asks each custodian for a random chunk of a piece of data it keeps custody of, with the proof that it belongs to the data (a Merkle tree path). The checker only needs the data’s hash.
- Correct response: a signed acknowledgement is left.
- Failure: the neighbour generates signed evidence and the next closest node copies the data, so that there are still k copies (section 4).
- Repeated failures: temporary exclusion (8.1).
- Future (out of v2026-12-beta). Rewards for whoever runs nodes, fees and the buying and selling of node services. The measurements above are the basis on which they could be built.
10. Limits against abuse
Section titled “10. Limits against abuse”- Quotas per entity and day: publications and space on the network, to curb abuse and not to charge. The values will be set with the performance tests. When the quota is exceeded, the network rejects with a clear error (
quota_exceeded) and the entity can try again the next day, at no cost. - Cap per node. It limits how many persons and entities a single node serves as a mediator. Since mediators are assigned at random and SHOULD be in different networks (6.1), no party depends on a single operator.
Future (out of v2026-12-beta). A resource market in which operators offer services of their nodes with signed offers, entities contract them with a service agreement and monitoring between nodes checks compliance.
11. Open questions
Section titled “11. Open questions”None for now.