4. Guide for providers joining Hydra Trust Center

4. Guide for providers joining Hydra Trust Center

Goal: run hydra-node, open a head together with other providers, connect Hexcore to Trust Center so the head is attested, then share your node with developers. The current phase is a test node on preprod.

4.0 Overview

Terms: a key holder is the organization that holds the keys of the nodes, here you; a connector is a Hexcore enrolled with Trust Center that reports for every node of a key holder; an enrollment code is a one-time code issued by the admin; a claim is Hexcore proving a node belongs to your organization with a signature from the node's own Hydra key; a badge is the trust level Trust Center gives a head.

4.1 Requirements

ItemRequirement
Server3. Install Hexcore on a server done: service running, HTTPS on a domain, Public URL set
Hexcore2.0.0-beta.10 or later (hexcore status shows the running version)
Networkpreprod, the same network as the test Trust Center
hydra-node2.4.2: the only version Trust Center can verify on L1
Chain backendPrefer a synced preprod cardano-node. Blockfrost can still report but may crash-loop because of hydra#2923. An offline head cannot report: there is nothing on L1 to verify
ClockNTP on: tunnels between parties tolerate at most 60 seconds of skew, Trust Center at most 5 minutes
Test ADAEach node's Cardano address needs preprod test ADA to pay L1 fees (faucet)
From the adminThe Trust Center API URL and an enrollment code for your organization

No cardano-node yet?

Run a preprod cardano-node on the same server following IntersectMBO/cardano-node. A full sync takes hours; Mithril shortens it with a signed snapshot. It needs more RAM and disk than hydra-node.

Once synced: Settings → the cardano-node socket → Find socket, then pick the socket that reports preprod. Build the real head only after the sync, because a head that has already run must be Reset before its configuration can be changed.

4.2 Connect Hexcore to Trust Center

  1. Settings → Trust Center → Connect to Trust Center: On. The navigation bar gains a Trust Center entry.
  2. Open Trust Center → Configuration:
    • Trust Center API URL: the URL the admin sent, origin only, for example https://tc-api.example.org. No /v1, no trailing /.
    • Trust Center web URL: may be left empty; it only builds links to the head's page.
  3. Under Enroll with a code, paste the Enrollment code (26 letters and digits) and click Connect.

On success the Identity card shows the organization name, connector id and public key. During enrollment:

  • Hexcore creates a connector key (Ed25519) in ~/.hexcore/trust-center/, separate from the node keys. It is never shown or sent; Trust Center receives only the public key.
  • The enrollment code is sent once over HTTPS and is not stored; it expires after 72 hours.
  • Trust Center checks that the domain of the Public URL serves the right public key (/.well-known/hexcore/trust-center.json); if it does, the Identity card shows "Verified domain".

If TRUST_CENTER_ENABLED is already set in the environment or .env, the switch is locked: remove that value on the server.

4.3 Build a multi-machine head with other providers

Each provider runs their own Hexcore and keeps their own keys. By default the nodes meet over a relay (a tunnel through each Hexcore's HTTPS Public URL), so no extra port needs opening. Agree beforehand on the head's creator, the head name, preprod, hydra-node 2.4.2, and the contestation and deposit periods.

Head creator

  1. Create a Hydra Head → Kind of head: Multi-machine head.
  2. Enter Your party label: the name the other providers will see, for example your organization.
  3. Fill in the head name, network preprod, hydra-node 2.4.2, chain backend cardano-node and the agreed periods. Keep Connection between parties on Relay over public URL.
  4. To use an address that already holds test ADA: Use existing Cardano payment keys.
  5. Create head. In the Parties tab click Invite a party, copy the Invite link and send each provider their own link over a trusted channel.

An invite link expires after 7 days, when revoked, or when the head first starts. If it went to the wrong person, Revoke it in the invite list.

Joining party

  1. Create a Hydra Head → Kind of head: Join a head.
  2. Paste the Invite link, choose your chain backend (cardano-node) and Cardano key, and set a Local name if you want it to differ from the name on the card.
  3. Join head. Hexcore fetches the parameters from the creator automatically.

Both sides

  1. Check the Parties tab: all parties present, labels correct.
  2. Head fingerprint: compare the code with the other providers over a separate channel. It is optional for a head built from invite links and required before starting if any party was added from a card file. When it matches, click We compared it — it matches.
  3. Fund your node's address with test ADA (the Open the faucet button on the head page).
  4. Click Start. If Hexcore says a container cannot reach the relay listener (usually ufw), run the exact ufw or iptables command it prints and start again (§3.6).
  5. Wait until the Parties tab shows every party as connected. "unknown" after Hexcore restarts is normal; "left" means that node disconnected.

A head needs a majority of parties connected (3 parties need 2, 4 need 3) and a signature from every party on each snapshot, so every provider's node must be running. Parties can only be added or removed before the head first runs.

Open the head on L1

Once all parties are connected, one party (usually the creator) opens the node's Console and sends Init. The head page changes to Head is open and Hexcore records the on-chain head id.

4.4 Turn on reporting for the head

On the head page, turn on Report to Trust Center. The switch only works with hydra-node 2.4.2 on cardano-node or Blockfrost while the Trust Center connection is on, and it does not change how the head runs.

Once on, Hexcore claims the nodes your machine runs:

Claim stateMeaningWhat to do
No claim yetThe head has no on-chain id yetStart the head and send Init
Waiting for the head to openTrust Center has not seen the head Open on L1Wait: Hexcore rechecks after about 1 minute, backing off to 10 minutes, and immediately when the head opens
RegisteredThe node is assigned to your organizationNothing: reports start flowing
RejectedWith a reasonSee §5.5

Reports for a head that is not registered yet are kept locally and sent once it becomes Registered. Hexcore only reads from the node and sends signed reports; it sends no command to the node, and the content is only public head data. Conclusions such as a stalled head or a punishable violation exist only when the head has nodes from at least two organizations, each with its own enrollment code and Hexcore.

4.5 Read the Trust Center page

  • Connection: Hexcore says (last successful send, consecutive failures) and Trust Center says (online, offline…). The page warns when they disagree for long.
  • Identity: organization, connector id, public key, verified domain.
  • Heads on Trust Center: claim per node, badge, operating status, pending snapshot, disconnected peers.
  • Nodes, Reporting health, Report log: which nodes are still observed, report counts and latency, the last 50 reports.

Figures are re-read every 30 seconds. An idle head is not treated as stalled: hydra-node only creates a snapshot when there is a transaction, decommit or deposit.

4.6 Share a node with others

Once the head is open and attested, other developers can use your node: head page → choose a node → Connect tab.

Issue an access token (read and send commands)

  1. Create token, with a label for the recipient (for example team-abc-2026-12). The hxn_… token is shown only once.
  2. Send the recipient the URL and token over a private channel:
wss://hexcore.example.com/api/heads/<id>/nodes/<index>/socket?X-Api-Key=hxn_…

Or send the URL without the token and let them set the header X-Api-Key: hxn_… (or Authorization: Bearer hxn_…), which keeps the token out of access logs. 3. The recipient uses the URL with @hydra-sdk/bridge or any WebSocket client; the node's HTTP API is at …/socket/*.

Know this before issuing a token:

  • A token opens every node of one head (WebSocket and HTTP API) and can send any command, including Close. Give it only to people you trust to operate the head with you.
  • A token cannot sign in to Hexcore or change its configuration.
  • Revoking a token closes every connection using it at once. Give each person their own token so you can revoke individually.

Read-only sharing (view only)

Turn on Share this head read-only so anyone can watch the head without a token.

  • Viewers receive every frame the node emits but can send nothing: any frame they send closes the connection.
  • Only read-only HTTP endpoints answer: /head, /snapshot, /snapshot/utxo, /snapshot/last-seen, /commits, /protocol-parameters.
  • Viewers have their own connection pool (at most 32 per node). Turning sharing off disconnects them.

4.7 Day-to-day operation

  • Updating Hexcore (hexcore update) loses and duplicates no reports: they stay in the outbox until Trust Center confirms them.
  • Turning off Connect to Trust Center stops sending reports and deletes nothing.
  • Back up ~/.hexcore (§3.10): the trust-center/ folder (the connector key) sits next to the node keys.
  • Never run two servers with the same ~/.hexcore: two Hexcores sharing one connector key confuse Trust Center about the state.
  • Rotate the connector key if you suspect a leak: hexcore trust-center rotate-key on the server, ask the admin for a new enrollment code, enroll again (§4.2), then ask the admin to revoke the old connector.
  • Closing the head: send Close (or SafeClose) from the console, wait out the contestation period, send Fanout. Warn the other providers first.
  • Current limits: the Trust Center flow has been checked by tests and one local end-to-end run, not yet with a real head of two organizations on preprod (#36); a multi-machine head across two real servers on the Internet is still being measured (#26). If you hit a bug, send hexcore status and the logs (hexcore logs) to the Hexcore team.