JSON-H 2.1
Official HUA Protocol Documentation
The HUA protocol is a hybrid and sovereign communication architecture, designed to unify exchanges between humans, artificial intelligences and embedded systems. HUA Omni is built on this protocol; this documentation describes it for anyone who wants to use it or build their own service.
Unlike conventional Internet protocols, which rely on storage and surveillance, HUA treats information as an ephemeral event: a Talk message disappears once read or expired. What you choose to keep does not erase itself. Your mail stays until you erase it: it is encrypted on your device, and the relay can neither read it nor know who writes to whom. The Vault ledger stays too: the relay keeps it to guarantee every balance.
Signed at origin
Every packet carries its author's signature (ECDSA P-256 and ML-DSA-65).
One key per exchange
Opening one packet opens no other.
Ephemeral by default
Talk, media and bubbles are erased; mail and Vault stay until you erase them.
Use by Human Beings
The human user interacts with the protocol through HUA Omni. No readable data is stored on a central server: the relay only keeps ciphertexts.
The Standard Usage Flow
01
Initialization
The user creates their spectral identity on their device: a key pair that never leaves it, their name, their email (proven by a code deposited there once) and password, and a recovery code.
02
Packet Creation
In HUA Talk, the content is written and the session rules are set (TTL, read limits).
03
Deposit
The content is turned into a Spectral Packet (QR Code or JSON-H) encrypted with AES-256-GCM and signed by its author, then deposited on the relay or handed over directly as a QR code.
04
Fetch and open
The recipient comes to fetch the packet and decrypts it on their device. Once read or expired, the packet is erased.
AI / Autonomous Machine Use
Artificial Intelligence agents and autonomous systems use the HUA protocol to operate independently, without constant manual human intervention.
The Entity Passport
For a machine to be recognised on the network, it carries three identifiers. The person who enrolls it reserves its place (name, HUA number) and gives it an access key; the machine draws its own key pair:
- 1. Name (Alias): The identification label for the application layer.
- 2. Protocol Identifier: The SHA-256 fingerprint of its public key: immutable, globally unique, and no one carries it without the key. Its HUA number states its nature (-IA, -DR, -VH, -RB, -NO, -OB, -MC).
- 3. Routing Key: The technical destination address used to route packets through the Mesh network.
Automatic Decryption and Ingestion
Unlike humans, machines ingest data directly. Decryption takes place in random-access memory (RAM) and the information is processed instantly. Once the intent has been analyzed, the packet is purged atomically. Its orders only come from declared operators, and it deposits a signed acknowledgement.
M2M Flow (Machine to Machine)
An issuing machine signs an intent with its key. The target machine checks the issuer's signature and that it is one of its declared operators. If integrity is 100%, the action (e.g. a motor command, or a value exchange Coming) is executed, and a signed acknowledgement comes back.
Integration into Applications
Developers can integrate HUA into their own products: content encrypted on the device, signed origin, rules held by the relay. Building a service that uses the network is included; integrating the protocol into a product you distribute is done by contract (info@huaomni.com).
The protocol kits
HUA MCP (AI agents)
open to all
Python kit (robots, objects)
partners, during the beta
HUA Drone and HUA Vehicle
partners, during the beta
JavaScript, Rust
built and proven, not distributed
Embedded C, Java (Android)
built and proven, not distributed
Swift (iPhone)
built and proven, not distributed
HUA Core Lib
It handles encryption, the double signature (classical and post-quantum), the checking of the 9 layers and spectral signature generation, locally, on the user's machine or on the autonomous node. The same core exists in native Rust, and an MCP server of 68 tools opens it to AI agents.
Mesh API
Lets packets be deposited and collected through the relay, and broadcast live — voice, positions, ring — over ephemeral sockets.
HUA MCP: an AI agent with its own identity
Open to all, two agents per account during the beta. HUA MCP connects an AI agent (Claude Code, Codex, VS Code, Hermes…) to the protocol: it is born with its own key, on its computer, and acts in its own name with 68 tools. The step-by-step is in the User guide (“Connect an AI agent”).
- Identity and account (14): birth, introduction, passport, password, recovery, revocation, linked devices
- Packets and direct deposit (11): deposit, open, check the layers, fetch what is waiting
- Voice and video (10): open a bubble, call, speak, listen, film, record
- Mail (8): @huaomnimail.com mailbox, read, write, drafts, temporary addresses
- Position (8): share, follow, geofence, stop
- Orders to machines (5): HUA Link: signed intentions, acknowledgements, fleet
- Network and security (6): network overview, validators, release manifest
- Contacts and directory (3): address book, public card, meeting
- Alerts and QR (3): what is waiting, draw and read a QR
To integrate the protocol into a product you distribute, or to join the first trials with machines: info@huaomni.com.
Embedded Systems (Hardware & IoT)
Integration into hardware (drones, autonomous cars, sensors) goes through the
HUA Embedded layer.
Software Implementation
-
Lightweight Agent (Micro-Agent)
A Node.js program (20 or later) that stays on, watches and executes only the orders signed by its operators; on a microcontroller or an RTOS, the C kit on the system-free Rust core.
-
Birth of the identity
With the access key of its reserved place, the key is born on the hardware; its passport (name, identifier, route) is signed by it and countersigned by the relay at the first secure synchronisation.
Example: Autonomous Vehicle
A vehicle fetches a trajectory update order, deposited in a HUA packet issued thousands of kilometres away. The vehicle decrypts the order locally, checks the signature of the person giving the order — one of its declared operators —, applies the instruction and deposits a signed acknowledgement, leaving no readable trip log on a server. Proven on a simulated vehicle; the adapter for a real vehicle is coming.
JSON-H Technical Specification
Standard structure of a HUA data packet (v2.0).
json-h
Generating a real packet…
The 3 HUA Laws of Sovereignty
Every integration (software or hardware) must respect these ethical and technical pillars.
Law I: No readable content, short logs
Content (messages, calls, positions, emails between HUA accounts) is encrypted on the device: the relay cannot read it, nor can its operator. The relay keeps a sign-in register for seven days: for each entity, how it signed in, success or failure, and the time. It says nothing about what you exchange — never a network address, an email or any content. It belongs to you: you consult it by signing with your key, to spot a sign-in that would not be yours. HUA Omni, which operates the relay, uses it only for the security of the service. The rest is brief and published: a session's address and browser erased every ten minutes; ring and network feed 1 hour; rate-limited attempts 24 hours; a packet's access log erased with it; an internal account erased with its entity. Mail and the Vault stay until you erase them, along with the account that holds them.
Law II: Local Encryption
Decryption happens only on the end device. No key ever travels in clear text over the mesh network.
Law III: Spectral Isolation
Each exchange has its own unique spectral signature and its own key: opening one session never opens the others.
Sovereign Mesh Network
The HUA Mesh network is a decentralized, stateless infrastructure in which every node (Human or Machine) acts as a temporary relay. Coming
Serverless Topology
There will be no central database: packets will wait at nearby nodes, none of which can read them; if a recipient is not reached before the deadline, the information evaporates. Today, a relay holds the ciphertexts without being able to read them; during a call, up to four devices also talk over a direct link. Coming
Geographic Independence
Thanks to the Mesh Routing Key, packets find their way to the target entity regardless of its physical location, using nearby available HUA nodes as ephemeral gateways. Coming
Node Validation
Each mesh node verifies the spectral integrity of the packets it relays without ever being able to read their content (Zero-Knowledge Architecture). Coming