Keys and the mailbox
Records travel between nodes as the events that wrote them, sealed for their recipients and carried by the hub’s mailbox. The hub can tell who sent how much to whom, and nothing about what.
A key pair per node, never shared
Each node holds its own keys, made and kept inside the institution: a signing key (the one that also signs your grants’ visas) and an encryption key pair.
- Public keys are pinned, not just published. The hub keeps a directory of members’ public keys. When an institution joins, people at the other members confirm its key’s fingerprint outside the hub, so a compromised hub cannot slip in a key of its own.
- Joining and leaving change only who a message is sealed for. A new member receives messages from when it joins; one that leaves stops being a recipient. There is no shared key to rotate.
- A node can rotate its keys by publishing the new one, signed with the old. A stolen key is revoked through the directory and by telling the other members directly. A message signed with a revoked key after its revocation is refused.
Sealing a message
1A batch of events
Message 42 from A for this project: records, links, facets.
2Encrypt
Under a fresh random key, with an authenticated cipher.
3Wrap the key
Once for each recipient’s public key (HPKE): B, C.
4Sign
The whole message, with A’s signing key (Ed25519).
What the hub sees
- from
- A
- to
- B, C
- number
- 42
- size
- 18 KB
- time
- 2026-11-03 14:02
9f3c…a71e 0b5d…44c2 …
It cannot read the events.
The cryptography is HPKE (RFC 9180) for wrapping keys, an authenticated cipher for the payload, and Ed25519 for signatures, from permissively licensed libraries.
What travels: the origin’s events
- The unit is the event: records created, links, facets, corrections, retractions. The receiver appends them to its own log as foreign events, so a correction at the origin reaches every holder the way it reaches the origin itself.
- Sending is the relay’s job, one subscriber per project, each with its own position. Nothing in a node waits for a message to arrive.
- Receiving is fetching. A node fetches its mailbox over its own outbound connection, checks the signature against the pinned key, decrypts, and appends.
- An institution speaks only for the records it wrote. An event about a record the signer did not write is refused.
- Messages are numbered per sender and project, so a lost, repeated or reordered message is caught. A gap is filled by asking the sender to send that range again, under today’s filters, so nothing withdrawn since is sent again.
- The hub keeps a message only until every recipient has fetched it, and never longer than the agreement allows.
Replicas in the receiving node
- A replica keeps its origin’s identity and name, and only A’s events change it.
- B writes only its own facts about it: its link, its facet. Those travel back to A.
- B’s answers to the hub count B’s own records only, never the replicas.
- They keep their identity: the same internal ID and the same name, under the origin’s institution (
harmoniomics://inst-a/…). No same-as link is needed between copies of one record. - They live apart, in a namespace per project and origin, outside your departments. A department sees them only through your node’s own grants.
- They are read-only. Only the origin’s events change them.
- They have three times: when it happened in the lab and when the origin recorded it, as always, and when your node received it. You can read a replica “as known here” or “as known at the origin”.
- They are traversed like your own records, so your quality-control questions reach the coverage measured at the sequencing centre.
- They never count as yours. Your node’s answers to the hub count your own records only.
Leaving, withdrawal and erasure
- A member that leaves stops sending and receiving. What it already holds stays, under the agreement’s terms, like a released copy; if the agreement requires it, the leaving node retracts its replicas, and those retractions are its record of complying. Harmoniomics cannot check another institution’s compliance.
- A participant who withdraws consent: the origin retracts their records from the project, and the retractions travel along the path. Every holder’s replica is retracted, not deleted.
- Erasure is unchanged. Patient data never travels, so destroying the subject’s key at the origin is enough.
What the hub learns
The members, who sends to whom, when, and how much. Traffic alone can reveal volumes, such as how many samples a centre ships each week. Core’s threat model takes that as an input, with a compromised member, a stolen key, a hub that substitutes keys (stopped by pinned fingerprints), forged or replayed messages (stopped by signatures and numbering), and a receiver misusing replicas, which is the agreement’s to govern and the read audit’s to record.