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

Registries

Single list of the identifiers that the specifications use, so that two implementations write exactly the same thing. The other documents say what each element is; this one says how it is written.

  1. Form. Almena’s own identifiers are URNs with the form urn:almena:<kind>:<name>, in lower case and in English. They do not depend on any domain (self-sufficiency, vision, 2.9). The almena namespace is not yet registered with IANA (RFC 8141); its registration will be requested before this version is closed.
  2. Never reused. An identifier that has been published is never reused for something else, even if it is withdrawn.
  3. Versions. Each protocol and each type carries its version. A compatible change (an optional field is added) raises the minor version; an incompatible change raises the major version and is a new identifier (P9). A receiver MUST accept a higher minor version of a major version it supports, ignoring the fields it does not know.
  4. Additions. New entries are added in a new version of the specification (conventions, 4.1). Entities do not need to register their own types (section 3).

The type header of each DIDComm message (protocols) and of each message between nodes (node, 6) is urn:almena:msg:<protocol>:<version>:<message>.

Protocol Version Messages
exchange 1.0 request, presentation-request, ack, issue, result, cancel
relationship 1.0 close, mailbox-change
credentials 1.0 refill, revoke-notice, incident-notice
token 1.0 token-request, token-revoke, token-renew, token-redeem
management 1.0 approval-request, approval, session-end
node 1.0 heartbeat, entry, get, data, publish, publish-ack, publish-reject, challenge, challenge-response, evidence

Example: urn:almena:msg:exchange:1.0:request.

Between nodes. The node messages travel over libp2p, each with the protocol identifier /almena/node/1.0/<message>, and the DHT uses /almena/kad/1.0.0 (node, 2.4 and 6). That way the network never mixes with the public IPFS network.

Standard DIDComm v2 messages keep their own identifiers: problem report (https://didcomm.org/report-problem/2.0/problem-report), Discover Features 2.0, Coordinate Mediation 3.0 and Message Pickup 3.0.

Problem reports. The code of a problem report is e.p.<code>, with the codes of the interface, 9. Example: e.p.request_rejected.

Types defined by Almena:

vct What it is Issued by
urn:almena:vct:entity-identity:1 Entity identity credential (vision). Almena Trust
urn:almena:vct:conformance:1 Conformance credential of an implementation (conformance). Almena Trust
urn:almena:vct:manager:1 Manager credential (client). Each entity, to its managers
urn:almena:vct:token:1 Authorization token (protocols). A bank, to a merchant
urn:almena:vct:representation:1 Representation credential (person life cycle, 3). Whoever has the authority, to the representative

Types defined by an entity: urn:almena:vct:<aid>:<name>:<version>, where <aid> is the entity’s KERI AID (its did:keri without the did:keri: prefix). Since the AID is unique, no registration is needed. Example: urn:almena:vct:IKYLUMmNPZeEs77Zvclf0bSN5IN-mLfLpx2ySb-HDlk4:account:1.

Codes of the field catalogue. The value of each field is written as its standard says.

Basic types (for custom fields):

Code Value
text UTF-8 text.
number JSON number.
date Date in ISO 8601 format (YYYY-MM-DD).
boolean true or false.
choice One of the options listed in the form.
attachment A DIDComm attachment, with the formats and maximum size stated in the form.

Predefined fields:

Code Value Standard
country Two-letter code ISO 3166-1 alpha-2
nationality Two-letter code ISO 3166-1 alpha-2
region Subdivision code ISO 3166-2
language Language tag BCP 47
currency Three-letter code ISO 4217
sex 0, 1, 2 or 9 ISO/IEC 5218
phone_number Number with prefix E.164
email Email address RFC 5322
given_name, family_name, birthdate, address As in OpenID Connect OpenID Connect Core, standard claims
id_document Object with type, number and issuing_country (ISO 3166-1 alpha-2) —
iban Account number ISO 13616
age_over_NN true or false, where NN is the age (for example, age_over_18) —
Identifier Where What it is
ES256 JOSE alg ECDSA over P-256 with SHA-256.
ALM-MLDSA65-ES256 JOSE alg Composite ML-DSA-65 + ES256 signature: the construction of ML-DSA-65-ES256 in draft-ietf-jose-pq-composite-sigs-07. Keys: JWK AKP (cryptography, 4).
ALM-MLKEM768-P256 JWE alg Hybrid key encryption with HPKE and the KEM ML-KEM-768 + P-256: the construction of HPKE-8-KE in draft-ietf-jose-hpke-pq-pqt-02. Keys: JWK AKP (cryptography, 3).
ECDH-ES+A256KW JWE alg Classical key establishment over P-256, only for what is sent to the counter and sign-in QR codes (cryptography, 3).
A256GCM JWE enc Content encryption.

KERI events use the codes of the CESR specification: SHA-256 digests have the code I, so every AID starts with I. CESR does not yet define codes for ML-DSA (cryptography, 4). The ALM- identifiers are provisional: when the IETF ones are final, a new version adopts them (cryptography, 7).

Each piece of data published on the network (network, 2) states its type, so that custodians know how to validate it (node, 2.6): urn:almena:data:<type>:<version>. Data that never changes is located by its hash; data that changes, by a name: its type followed by : and what it describes, for example urn:almena:data:directory-entry:1:<AID> (network, 1.2). Each type also states its expiry: once it has passed, the network stops keeping that data (network, 1.1.1).

Type Content Expiry
directory-entry Entity directory entry. Never (only the latest version is kept).
entity-config A version of an entity configuration (network, 6.4.2). Never.
node-entry Node directory entry, or its withdrawal. Never (only the latest version is kept).
form A form version. Never.
vct-metadata Metadata of a credential type. Never (only the latest version is kept).
status-list A revocation list (Token Status List). Never (only the latest version is kept).
record An activity record. 10 years after its time (provisional value).
trust-credential A credential that Almena Trust publishes about an entity. Never (only the latest version is kept).
evidence Misbehaviour evidence about a node. Never.
incident Incident notice of an entity (incidents, 6). Never.

The KEL keeps its own KERI format and never expires: without it no earlier signature of the entity could be verified, not even a receipt.

  • Error codes: interface, 9.
  • Operation codes of the records: network, 7.1.1.
  • Where the holder keys are (client): holder_key_storage, in the issuance request, in refill and in each copy of a person’s credential, with the values hardware (secure chip) and software.
  • Deep links (client): almena://<action>?<parameters>, with the parameters URL-encoded. Actions in v2026-12-beta:
    • invite: entity invitation. Parameters entity (its did:keri, required), form (the network hash of a form version, optional) and manager (the one-time code of an invitation to be a manager, optional, client).
    • signin: console sign-in. Parameters nonce, key (the console’s session key), mailbox (its temporary mailbox) and exp (its expiry), written as in contact. In creation and recovery modes it also carries mode, with the value create or recover.
    • contact: single-use contact code of the counter QR (protocols). Parameters key (the temporary P-256 key, as a did:key), mailbox (the AID of the Mediator Node that hosts the temporary mailbox, whose URL is in its node entry, network, 8.1) and exp (expiry, in seconds since 1970 UTC).
    • A wallet MUST ignore the parameters it does not know.
  • Binding code of an entity node (interface, 10): <AID of the node>.<code>, where the code is 128 random bits in base64url without padding. The node generates it for its operator; it works only once and only while the node is not bound to any entity.

None for now.