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

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.

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 until the data expires (section 3 and 1.1.1), 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.

Format and hash. Each piece of data on the network is a JWS in compact serialization, signed by whoever publishes it, with its type in the payload (registries, 6). There are two exceptions: the KEL, which keeps the KERI format, and the entity configuration, which is JSON serialized with JCS (RFC 8785) and sealed in the KEL (6.4.2). The hash of a piece of data is the SHA-256 of its bytes exactly as they are published, written as KERI does: in CESR, with the code I (44 characters). That hash is its address on the network, and each record uses it to cite the previous one (7.1.2). There is a test vector in the example of a payment with a token.

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.
  • Expiry by type. Each type of data has an expiry (registries, 6), counted from its time (for an activity record, its time). Once it has passed, nodes MUST NOT store, replicate or serve that data, Archive Nodes included, and MAY delete it. That way the network does not grow forever. Expiry only limits the network’s copies: it cannot remove a private copy, and privacy does not depend on it but on the salt (7.4).
  • Stack. Nodes MUST use libp2p for transport and its Kademlia DHT, with Almena’s own protocol identifiers, so that the network never mixes with the public IPFS network (registries, 2). 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. The PeerId is also its position in the DHT (section 4).
  • 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 one, its code and the hash of its 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 entity configuration (6.4.2).

  • 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, rotations, interactions) that anyone can verify from the first one. It carries the managers’ keys; the entity nodes, daily-use keys and mediators go in its configuration, anchored in the KEL with a seal (6.4.2).
    • Without witnesses. Almena does not use KERI witnesses (witness threshold 0). The KEL is stored like any other data, on the k custodians of its AID (section 4), which sign an acknowledgement for each event they receive (node, 6.4).
    • Custodians and Archive Nodes as watchers. They apply KERI’s first-seen rule: they keep the first version they see of each event and do not replace it, except with a recovery rotation as KERI allows. If another version signed by the entity arrives for the same position, they keep it too as proof of duplicity (two different versions of the same history) and serve it with the KEL.
  • 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.

Data located by name. Data that never changes is located by its hash (1.1). Data that changes is located by a name, which stays the same across its versions, and its custodians are the k nodes closest to that name (section 4):

Data Name
KEL The entity’s AID.
Entity directory entry (1.1.1) urn:almena:data:directory-entry:1:<AID>
Node entry (8.1) urn:almena:data:node-entry:1:<AID of the node>
Revocation list urn:almena:data:status-list:1:<AID of the issuer>:<number>, which is the status.uri of each credential
Credential type metadata urn:almena:data:vct-metadata:1:<vct>
Almena Trust credential urn:almena:data:trust-credential:1:<AID of the entity>
  • The most recent version wins. Each version of a piece of data located by name carries an increasing number, version, inside what is signed (a revocation list uses its iat). Custodians keep only the highest, and whoever reads rejects a version lower than one it has already seen. The KEL follows its own rules (above).
  • Everything else never changes: forms, entity configurations, records, incident notices and evidence. A new version is a new piece of data, with another hash.

A node’s cache does not make it a custodian: a cached copy can disappear at any moment; only assigned custody counts for persistence.

  • Entities’ KELs (their identity and their managers’ keys, section 1.2) and their configurations (entity nodes, daily-use keys and mediators, 6.4.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).
  • The misbehaviour evidence about nodes (8.1) and the entities’ incident notices (incidents, 6).

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 until they expire (1.1.1), 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.

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 PeerId is closest to the data’s key according to the Kademlia distance, as libp2p computes it (1.1.1). The key is the text, in UTF-8, of its hash or, for data that changes, of its name (1.2). Since the hash depends on the content, the entity does not choose where it is stored. A KEL, which grows with each event, is located by its AID instead of by its hash (1.2).
  • One list for everyone. Eligibility is computed only with public, signed data, so that any two nodes with the same node directory compute the same custodians. A node is eligible if its entry is current (8.1), its entry period is over according to its custodians’ acknowledgements (6.2.2), its entry declares at least the minimums (5.1) and it is not excluded by evidence that anyone can check (8.1). 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, that is, in the same address range according to the addresses in their entries (5.1), or behind the same relay (6.3). If there are not k nodes in different networks, the closest of the skipped ones complete them.
  • 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. Each node judges this with what it observes itself; if two nodes see it differently, at worst there is one copy too many, which does no harm.
  • 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.
Choosing the k custodians of a piece of data
  • 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).

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
Same network, for the diversity of custodians (4) Same IPv4 /16 or IPv6 /32 range
Time margin for publishing a record (6.2.3) 5 s
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 that has not expired (1.1.1) 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 and giving each one an address under its own domain (6.3). Domain with certificate, 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 configurations, entity directory, Almena Trust credentials, forms, revocation lists, activity records and node entries. Never mailboxes, anything private or expired data (1.1.1). 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).
Node functions: base node, at most one complementary function, and the entity node option

A Mediator Node is a transport-only piece: it connects two parties and nothing more.

  1. What it does. It receives encrypted DIDComm messages (forward), places them in the corresponding mailbox and delivers them when the recipient collects them.
  2. 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).
  3. 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).
  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.
  5. 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.
  6. 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.
Each party receives at its own mediators

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.
    • They go in the entity configuration (6.4.2), which the managers approve with M of N. To change one, a new version is approved; the current version prevails.
    • The mediator node signs its own endpoint (the service URL) with its node key.
    • When the entity’s did:keri is resolved, its mediators appear as DIDCommMessaging services in its DID document (6.4.2).
  • 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 Mediator 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 version of its configuration (6.4.2), which the entity node prepares and the managers approve from their wallets.
  • 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 (the AID is the SHA-256 of its inception event, cryptography, 4). 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. Its position in the DHT is its PeerId (section 4), which does not change when the AID’s key is rotated. If the node changes its PeerId, it publishes it in its entry and its entry period starts again (6.2.2).
  • Heartbeats. An active node MUST periodically emit a signed heartbeat with an increasing counter. Peer monitoring records it (section 9).
States of a node

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. It only works if the identity key is in software: a key in hardware cannot be copied, and if that device is lost, the node starts with a new identity.

“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. A new node can only be a custodian after the entry period (5.1), counted from the acknowledgements that the custodians of its entry signed when they received its first version. Each custodian keeps its acknowledgement of the first version with that PeerId and serves it with the entry (node, 2.6), and the period counts from when at least 3 of them had acknowledged it, so that a node cannot backdate it on its own. Several colluding nodes could still vouch for a new one; assignment by verifiable randomness (section 4) would close that.
  • Proven custody. Storage challenges check that each custodian keeps what it has been assigned (section 9). An identity that does not keep it gains nothing, because whoever notices keeps its own copy: a thousand identities are worth no more than one if they do not store a thousand times the data.
  • Network diversity. Custodian assignment avoids nodes from the same network (section 4).

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.

  1. Source. Each node MUST synchronize its clock with authenticated NTP (NTS) against at least 3 independent sources.
  2. Accuracy. The goal is to be within 100 ms of real time. Above 1 s the node is considered drifted.
  3. 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.
  4. Drifted node. If a node drifts more than 1 s from the median:
    1. it MUST stop writing records and acting as a custodian until it is corrected;
    2. its neighbours note it for their own choices, but it is not evidence for others, because each one compares with its own clock (conformance, layer 3);
    3. it returns to normal after several consecutive heartbeats within the margin.
  5. Time of a new record. A custodian compares the time of each new activity record with its own, with the margin of 5.1:
    1. Within the margin: a normal record.
    2. Earlier (late record): the custodian MUST accept it if its signature is valid and its time is not earlier than that of the previous record of its chain. If that previous record is not on the network, it accepts it all the same: the gap stays visible until someone publishes the missing record. Its acknowledgement marks it as late, with the time of arrival, so that anyone can see when it really reached the network (7.1). It counts toward the entity’s quota like any other record.
    3. Later (from the future): the custodian MUST reject it (clock_skew).
    4. Copies between custodians (re-replication, Archive Nodes) are not checked again: they keep their original acknowledgements.
  6. Mobile devices. Nothing is required of wallets: the freshness of a presentation is guaranteed by the nonce.

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.

A node behind a relay: between nodes by identity, by HTTPS under the relay's domain
  • How a node connects. A node behind a relay opens a connection to each of its relays and keeps it open. Everything addressed to it arrives through those connections, so it never has to accept a connection from the Internet.
  • Between nodes, by identity. A node that wants to reach it asks the relay to connect it to its PeerId, which is bound to its AID (1.1.1); no domain is involved. That traffic MUST be end-to-end encrypted through the relay. The relay only forwards it: it cannot read it, because it is encrypted, nor alter it, because everything is signed.
  • HTTPS, under the relay’s domain. A Relay Node MUST have its own domain and TLS certificate. Each node it serves gets an address under that domain, https://<relay domain>/n/<node AID>/, with the AID exactly as it is, and the relay forwards to the node, through the connection the node keeps open, every request to that path (WebSocket included). For example, https://relay.example.org/n/<AID>/1.0/info. The node publishes in its entry one address per relay (8.1).
  • TLS ends at the relay. This is acceptable: what passes through it in the clear is public and signed (section 1.1), and everything else is already end-to-end encrypted, such as DIDComm messages and the channel between a console and its entity node (interface, 10).
  • 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.
  • 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.
  • Metadata. The relay sees whom the node communicates with and how much traffic it moves and, like any gateway, what is read through it. 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.

Alternative for the future. One subdomain per node, with a wildcard DNS record and certificate for the relay. The AID could not go in the subdomain as it is, because DNS does not distinguish upper and lower case and an AID does: it would have to be written in an encoding without case.

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:

  1. 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.
  2. 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.
  3. 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.
  4. Authorized by the entity. The binding is authorized by the entity with its M-of-N threshold, by adding the node to its configuration (6.4.2), and can be revoked the same way, with a version without it. The node only accepts being bound with its operator’s consent, given with its binding code (interface, 10).
  5. Redundancy. An entity MAY bind several nodes at once so as not to stop if one fails (section 6.4.1).
  6. 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.
  7. 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.
  8. 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.
  9. 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 entity configuration (6.4.2; key inventory). Managers do not sign each credential or each record.
  10. 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, versions of the configuration and approvals, and the managers sign them (client).
  11. One node, one entity. An entity node serves a single entity: a node MUST NOT be bound to more than one entity.

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 key ML-KEM-768 + P-256), listed with M of N in the entity configuration (6.4.2) and published in the keyAgreement of its DID document. 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.

What an entity uses day to day and is not a manager key goes in a single public document, the entity configuration. The KEL only carries the managers’ keys and, for each version of the configuration, a seal with its hash.

What Where
The managers’ keys and the M-of-N threshold KEL
The bound entity nodes (6.4) Configuration
The daily-use keys of each node: encryption (6.4.1), issuing, record and holder Configuration
The mediators, each with the endpoint it signs (6.1) Configuration
  1. Content. Each version carries the entity’s did:keri, its version number, the moment (UTC) from which it applies, the bound nodes (their AIDs), the daily-use keys of each node with the use of each one (encryption, issuing, record or holder) and the mediators.
  2. Approval. Each version is approved with the M-of-N threshold of the KEL: the managers sign, from their wallets, a KEL event that carries the seal of that version (protocols, entity management). The first version goes in the inception event (client, entity sign-up).
  3. Where it lives. On the network, like any other data, on the k custodians closest to its hash (section 4). It is found through the hash in the seal. The current version is the one with the most recent seal in the KEL.
  4. Changes. Binding or unbinding a node, adding or removing a key and replacing a mediator are done with a new version, which the entity node prepares and the managers approve.
  5. One use per key. A signature of the entity is only valid for the use that the configuration gives its key: a credential signed with the record key, or a record signed with the issuing key, is not valid.
  6. Keys over time. A signature is valid if its key was in the version that applied when it was signed. Removing a key with a new version stops new signatures with it, but does not invalidate what it already signed (incidents).
  7. DID document. Whoever resolves a did:keri builds its DID document from the KEL, as the did:keri method says, and from the current version of the configuration:
In the configuration In the DID document
Encryption key of each bound node keyAgreement
Issuing and record keys assertionMethod
Holder key authentication
Mediators DIDCommMessaging services
How the DID document of an entity is built

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’ keys, rotations), the configuration (entity nodes, daily-use keys, mediators) and the internal audit log: which manager approved what. The KEL and the configuration, on the network. The internal audit log, on the entity nodes. The KEL and the configuration are 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); activity records only disappear from the network when they expire (1.1.1).

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 its record key (6.4.2). 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. Archive Nodes, which keep a full copy of everything public, apply the same duplicity detection to record chains as to the KEL (1.2): two different records signed by the entity in the same position of a chain expose it.
  • 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, through any node with POST /1.0/records (interface, 6). The signature is the entity’s, so it is equally valid, and it contains nothing of the person. The network accepts it as a late record, marked with its time of arrival (6.2.3), even if records before it are missing. If it rejects it for the moment because the entity has used up its quota (quota_exceeded), the wallet tries again later. 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.
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 Request accepted by the entity without issuing: it verified what the holder presented (credentials, data or documents).
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).
  1. Record (public, a JWS signed by the entity with its record key, 1.1 and 6.4.2): 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 (its network hash, 1.1); the operation code and the UTC time; and the commitment, a SHA-256 of the salt plus the details of the operation. The fields are type, entity, node, seq, prev, op, time and commitment (example).
  2. 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). The parties are always the two ends of the relationship over which the message of the operation travels, and the receipt goes to the other end. In a token, issuance and revocation are between the person and the bank, and renewal and redemption between the merchant and the bank, so the merchant never receives the person’s identifier.
  3. Receipt (only for the other party): the record (its JWS), the salt and the details. With them the commitment can be checked.
  4. 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 two parties are 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.
  5. Technical records: audit.anchored carries in the clear the hash and the number of the last entry of the internal audit log; record.voided carries in the clear the number of the record it voids. Neither contains personal data.
Chain of records of an entity node

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).
  • What it captures. Each management action that does not go in the KEL or in the configuration: 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.

No record, of either family, can be deleted before it expires (1.1.1):

  1. Hash chain. Each record contains the hash of the previous one in its chain and is signed. Deleting or changing one breaks the chain. When the oldest records of a chain expire, the chain is checked from the oldest one still on the network, and the expired ones do not count as gaps.
  2. 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.
  3. 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.
  4. 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.
  5. Duplicity. The custodians of the KEL and the Archive Nodes detect an entity that presents two different versions of its KEL or of a chain, and keep both as proof (1.2 and 7.1).
  6. 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 the Archive Nodes 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:

  1. 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.
  2. 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).
  3. Erasure by destroying the salt. If the person exercises their right to erasure (with erase in the close message, protocols), 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).
  4. Legal obligation. If the entity must keep the proof by law, it keeps the salt for as long as that obligation lasts.
  5. Limited conservation. Activity records expire on the network after the period of their type (registries, 6): the network does not keep them indefinitely.

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 relays offers it at the address each relay gives it under its own domain (6.3). Each node declares its read URL in the node directory, one per relay if it is behind relays.
  • 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, refuse to answer or leave entries out of a list, and that is why several are used. Whoever chooses nodes at random from the node directory, such as the mediators of a person or an entity, SHOULD gather it from at least two gateways of different operators, such as those of the bootstrap list.
  • Read only. Gateways are for reading the network. The only exception is publishing an activity record signed by an entity (POST /1.0/records, 7.1), which the node delivers to its custodians. Mailboxes remain at each person’s and entity’s mediators (interface).

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).

  1. Own entry. Each node publishes in the DHT a signed entry with its KERI identity: its address and read URL (one of each per relay if it is behind relays, 6.3), 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.
  2. 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.
  3. Expiry. An entry expires after 24 h and the node renews it. If it does not, it disappears from the directory on its own.
  4. 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.
  5. Voluntary withdrawal. The node publishes a signed withdrawal entry.
  6. Inactivity. A node that does not renew its entry within 24 h (item 3) is inactive for everyone and is not used to assign mediators or custodians. If it comes back, it rejoins without repeating the entry period.
  7. Checking what it declares. If a node declares a function and does not respond as such, whoever observes it notes it and stops choosing it for that function. A lack of response is not evidence for others (item 8).
  8. Temporary exclusion. Only evidence that anyone can check counts: a wrong response to a storage challenge, or two signed messages from the node that contradict each other (node, 6.6). The evidence is served with the node’s entry, so everyone sees the same. A node with repeated evidence is excluded from custody and mediation for a period that grows with each repetition, without any authority having to expel it.

Entry content. Besides what item 1 lists, the entry carries the node’s PeerId, so it is the signed association between its AID and its PeerId (1.1.1); the disk and upload it contributes, at least the minimums (5.1); the protocol versions the node speaks; for a Mediator Node, its DIDComm URL and its encryption key; and for a Relay Node, how many nodes it accepts. It is a JWS signed by the node, with an increasing version (1.2).

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.

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, to choose well where there is a choice (mediators, relays, gateways) and to curb fake identities (6.2.2). Only what anyone can check has consequences for everyone (8.1):
    • Custodied disk: periodic storage proofs over the assigned information.
    • Availability: checks by other nodes during mutual monitoring (conformance, layer 3).
  • Storage proofs.
    1. Random challenge. Once a day, a randomly chosen neighbouring node sends each custodian a random number (nonce) for a piece of data it keeps custody of. The custodian answers with the SHA-256 of the nonce followed by the data, which it can only compute if it keeps the whole piece of data. The checker gets the data from another custodian or a cache and computes the same value, so anyone who has the data can check the response.
    2. Correct response: a signed acknowledgement is left.
    3. Wrong response: anyone can check it, so the neighbour generates signed evidence (8.1) and the next closest node copies the data, so that there are still k copies (section 4).
    4. No response: it is not proof for others. The neighbour keeps its own copy of the data until that custodian answers one of its challenges again, and stops choosing it where it has a choice.
    5. Repeated evidence: temporary exclusion (8.1).
  • Future (out of v2026-12-beta). Rewards for whoever runs nodes, fees and the buying and selling of node services, and with them the metering of bandwidth and of hosted mailboxes. The measurements above are the basis on which they could be built.
  • 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.

These persistence points remain open for a later version:

  1. Finding a record chain. To detect two records in the same position of a chain (7.3) they must be looked up by entity, node and sequence number, but the only route, GET /1.0/records/{did}/{hash}, requires already knowing the hash.
  2. Nodes that arrive closer. Re-replication covers a custodian that stops emitting heartbeats (section 4), but not a new eligible node that is closer to the data than a current custodian: it is not said who copies the data to it.
  3. Starting a new network. With an entry period of 7 days (5.1), a newly created network has neither custodians nor mediators during its first week.
  4. Spam. The quota is per entity (section 10), but creating an entity is free, and there is no limit on opening mailboxes or on filling an entity’s mailbox with messages.
  5. Dependence on Archive Nodes. Only an Archive Node resolves a search in the entity directory, and serving GET /1.0/nodes requires gathering every node entry, which a DHT does not do by itself.
  6. Personal data of node operators. A node entry carries the network address of its operator, who may be a person, and neither node entries nor misbehaviour evidence expire (registries, 6).