Keys
The Korean version is authoritative. This page was translated by AI (Claude) and has not yet been checked by a person. 한국어 원문
This document sets out, for the Hahoe Genesis Protocol (HGP), what locks an original, who opens it, and what happens when a key is lost or the depositor dies. It is how principle 6, “Originals are locked with the owner’s key. Not even the store operator can open them”, is kept in practice.
0. In one line
Section titled “0. In one line”Each original is locked with a key made for that file alone (the content key), and that key is wrapped again with the depositor’s key (the owner key). To wrap a key is to lock one key inside another. The owner key is split into three shares held by three parties, and any two shares bring it back. The holders are the depositor’s device, the family (the successor), and the store operator (for now, Nodeone). The operator cannot open an original alone, and the depositor has nothing to memorize.
1. What this protects
Section titled “1. What this protects”- The store operator cannot open an original alone (principle 6). The same holds for the operator itself, for someone who breaks into the server, and for anyone who demands the material from the operator.
- The depositor does not have to think about keys (HGP-0005 section 2). We do not make them memorize a recovery phrase or guard a piece of paper. They open things with the phone’s fingerprint or face recognition.
- Losing the phone does not mean losing the records. The family and the operator recover them together.
- Sealed records are opened by the depositor alone. Neither the successor nor the family member who helped with recovery can open them (01-Permissions section 3).
- We write down separately which stretches are guarded by lock and which are guarded by promise (principle 6). The stretches guarded by promise are gathered in section 7 of this document.
2. Kinds of keys
Section titled “2. Kinds of keys”| Key | What it does | Where it is | September specification |
|---|---|---|---|
| Content key | Locks one original file. A random key made fresh for each file | Wrapped, in the store’s key ledger | |
| Owner key | Wraps the depositor’s content keys (except sealed ones). The signing key is also derived from it | Inside the depositor’s device. Three shares for recovery (section 4) | the person’s key |
| Relation key | Opens one scope (relation, community). Wraps the content keys in that scope once more | Wrapped with the owner keys of the people in that scope | the relation’s key |
| Seal key | Wraps the content keys of sealed records | On the depositor’s device, and in one place not connected to the internet. It is not split into shares | cold (HGP-0005 section 5) |
| Signing key | The depositor signs fingerprints with it (section 5) | Derived from the owner key |
- The “app key” (decision 0011) is not one of the keys in this document. It is the pass an app uses to get into the store, and it cannot unlock an original.
- This is how one file is opened. The device’s fingerprint or face recognition opens the owner key, that key unlocks the file’s content key, and the content key opens the original. For a relation scope, it passes through the relation key once more.
3. When and where to lock
Section titled “3. When and where to lock”- Lock on the device, then send. When a recording ends, the device takes the original fingerprint (
sha256_device), locks the file with the content key, takes the fingerprint of the locked file as well, and then sends it. The store only receives locked files. - The store takes the fingerprint of the locked file (stored fingerprint,
sha256_stored) and checks it against the value the device sent. If they differ, it does not store the file (the “take it twice” rule of 02-Fingerprint section 2 is applied to the locked file). - The store cannot see the original, so it cannot take the original fingerprint again. When the device locks the file, the original fingerprint (
sha256_store) records the value the device took, as it is. Checking the original fingerprint again is done by the depositor’s device each time it opens the file (02-Fingerprint section 4). - The ledger records
encryption: "user-key"andevent: "encrypted"(03-manifest sections 3 and 5). - When the device cannot lock the file (for example, a batch of old document scans already made), the store locks it as soon as it receives it and deletes the copy from before locking. From the moment of receipt until it is locked, it is guarded by promise.
4. Two of three shares: recovery and succession
Section titled “4. Two of three shares: recovery and succession”The owner key is split into three pieces called shares. Any two shares bring the owner key back, and one share alone reveals nothing (Shamir’s secret sharing). This was decided in decision 0018.
| Share | Who holds it | How |
|---|---|---|
| 1 | Depositor | Inside the device (together with the owner key itself) |
| 2 | Family (successor) | If the family member uses the app, wrapped with that person’s owner key. Otherwise on a paper card (QR) |
| 3 | Administrator | Locked with the operator’s key, in a place separate from the data. Copies follow the two-places rule for originals (decision 0010) |
- If no family member is named, the depositor’s second device (another phone, a computer, a security key) takes the place of share 2. If there is neither, the records cannot be recovered when the phone is lost. We tell the depositor this at the start.
- By default, the family member who holds share 2 is the successor. This can be set differently.
- A share is used only to bring a key back. The family member who holds a share cannot open anything with it alone.
Recovery (the depositor is alive and has lost the phone)
Recovery brings the lost owner key back onto a new device from two shares.
- The depositor asks for recovery from a new device. The administrator checks their identity.
- The family member sends their share to the new device.
- Wait 7 days. During that time, the depositor’s other devices and the family are notified. If someone asked while pretending to be the depositor, it can be stopped in that time.
- The administrator sends their share to the new device. The owner key comes back only inside the new device. The administrator and the family never see each other’s shares.
- The new device makes a new owner key and splits it into shares again (the old shares become useless).
- The fact and time of the recovery remain as an entry that is never deleted (HGP-0005 section 10).
Succession (the depositor has died)
The procedure is in 11-Succession section 3. The waiting period is 30 days. After that, the owner key is brought back on the successor’s device from the successor’s share and the administrator’s share.
- The successor opens everything except sealed records. The seal key is not in the shares, so succession does not open it (01-Permissions section 3, “not even the successor can open it”).
- Succession does not change scope. The successor cannot widen a scope (01-Permissions section 2).
If the store operator ceases to exist, share 3 is handed to the next operator. What is handed over is the share, and the handover is recorded (HGP-0003 Article 10, HGP-0005 section 8-1). Even before the handover, the depositor’s device and the family share, two together, are enough to split the key again.
5. Signatures
Section titled “5. Signatures”This settles the “depositor signature” left open in 02-Fingerprint section 8 (decision 0018).
- The signature method is Ed25519 (RFC 8032, a short and fast public-key signature method). The signing key is derived from the owner key (HKDF, RFC 5869: a way to derive one key from another) and is used only inside the device.
- What is signed: the record’s original fingerprint, the record number, and the time. It is proof that “this person deposited this record”.
- The public key is kept in the store. Each time it changes (recovery, succession), the new public key and the reason are kept as an entry that is never deleted.
- The C2PA approach (X.509 certificates) will be looked at again when an institution is the depositor.
- It is different from the store signature on registry entries (secp256k1, decision 0016). That one is the store’s signature saying “we posted it”.
6. Scope and keys
Section titled “6. Scope and keys”- Widening a scope means wrapping the content key once more with a new relation key. The original is not moved (HGP-0005 section 6).
- Narrowing a scope means removing that wrapped copy. What someone who already opened it has taken away cannot be undone (07-Deposit section 7).
- Making a record public means the original stays locked, and only a copy for the public (a reduced copy, with location data removed) is kept separately, unlocked. The copy carries which original it was made from and how (02-Fingerprint section 9).
- Sealing a record means wrapping it only with the seal key. The wrapped key is not kept on an online server (HGP-0005 section 5, “cold”).
- Destroying a record means removing every wrapped copy of that record’s content key (01-Permissions section 4). Copies left in backups of the key ledger disappear only after the backup rotation period passes. That period (for example, 30 days) is written in the destruction entry. The locked file may remain, but no one can open it.
7. The moment it opens: stretches guarded by promise
Section titled “7. The moment it opens: stretches guarded by promise”| Stretch | What opens | How it is guarded |
|---|---|---|
| When the original is sent to an outside company, as for transcription or translation | For each job, the depositor’s device briefly hands that file’s content key to the server. The server unlocks it only in memory to send it, leaves nothing on disk or in logs, and discards it when the job ends. If “automatic transcription” is on, the device sends this permission along when the recording ends | Promise. At that moment, the unlocked original is in server memory. The record of sending is sent_to (03-manifest section 8) |
| When the device cannot lock, and the store locks on receipt | From the moment of receipt until it is locked | Promise |
| The interpretive layer (transcripts, translations, summaries) | Not locked for now. It is filtered and shown according to scope | Promise |
| Reading copies for public and community scopes | Not locked (HGP-0005 section 5, “hot”) | Scope filtering |
| Recovery | If the operator and the family conspire, they can bring back the owner key without the depositor | Promise, the 7-day notice, and the record that is never deleted |
We do not use a path that sends directly from the phone to the transcription company. The transcription company’s key (API key) cannot be kept on the phone.
8. Recommended methods (implementation is free to choose)
Section titled “8. Recommended methods (implementation is free to choose)”As in HGP-0005 section 11, this document sets what must be kept, and the implementation chooses the technology. What we recommend:
| Task | Recommended method | Grade |
|---|---|---|
| Opening the owner key on the device | The PRF extension of W3C WebAuthn (passkeys) (a feature that produces a key from a secret inside the device) | referenced |
| Locking files | AES-256-GCM or XChaCha20-Poly1305 | referenced |
| Wrapping keys | HPKE (RFC 9180) | referenced |
| Splitting into shares | Shamir’s secret sharing (two of three) | referenced |
| Signing | Ed25519 (RFC 8032), key derivation HKDF (RFC 5869) | referenced |
| Destruction | NIST SP 800-88 “cryptographic erase” (destroying the key so that it is the same as erasing) | referenced |
We do not write “conforms” until it has been checked with a test tool. There is not yet an international standard that covers keys and deposit (the September external standards mapping).