Skip to content
Auto
EnglishEN

Node

almena-node (id.almena.node) is the node of the Almena ID platform. It implements the node specification of v2026-12-beta.

Status: early development, before the first release. The binary has its command-line and terminal interfaces; the node itself lands as the implementation of the specification progresses.

A single Rust binary (edition 2024, Rust 1.88 or newer) with two ways to operate it:

  • a CLI built with clap, for scripting and automation;
  • a TUI built with ratatui, for interactive use, with sections for status, identity, peers and settings.
Terminal window
almena-node # open the terminal UI (default)
almena-node info # print version and language
almena-node --lang es info # use Spanish

The language comes from --lang, then ALMENA_LANG, then the system locale, falling back to English.

Platform Minimum version Architecture
macOS macOS 27 Apple Silicon only (aarch64-apple-darwin)

Linux, Windows and containers are out of scope for now. macOS-only APIs stay in isolated modules, because Linux servers are a likely next target. Running as a background service will use launchd.

Concern Decision
Availability (network) The node holds a power assertion so the Mac does not sleep while it runs, and warns the operator otherwise.
Resources (network) The node checks free disk and measured upload at start and refuses custody if below the minimums.
Reachability (network) Macs behind NAT use relays as the specification describes; direct exposure is optional configuration.
Clock (node) macOS’s time service is not enough for the clock requirements, so the node runs its own NTS client.
Protected key storage (key inventory) Secure Enclave through the Keychain where the algorithm allows it; otherwise an encrypted software store.
Networking (node) rust-libp2p for the peer-to-peer layer.

All specification parameters live in a single configuration module, so that a change of specification version does not touch the logic.

  1. The base node, then the protocol between nodes.
  2. One complementary function (not decided yet).
  3. The entity node.
  1. Post-quantum keys in the Secure Enclave. Whether the algorithms the specification asks for can be kept in the Secure Enclave is to be confirmed before implementing key storage.
  2. First complementary function. Not decided yet.