Once

Hand over your ID once. It stays sealed, and no single compliance officer can open it.

Deployed on QoreChain testnet: OnceRegistry at 0xbCaa5A46Ce5fc9B115f3B6DCca01f1fA06Af0024, with the full flow run on chain in 17 transactions you can open (see the run). The demo below uses the same encryption code and the same rules, in your browser, so you can try it without a wallet.

Step 1 of 6 Seal Ada's passport for Example Exchange.

Ada's side

Everything here happens in the browser. The passport never leaves this page unencrypted.

Specimen passport (demo data)

Example Exchange compliance desk

Three officers. Each holds one sealed share of the key. One share alone opens nothing.

This demo runs in your browser so you need no wallet: the officers' keys are generated here, and a copy of OnceRegistry's rules runs here, including its check of each officer's ML-DSA-87 signature. The encryption and signatures are the real libraries. Nothing on this page is sent to a chain or a server. The deployed contract and its run are below.

The bribed agent

Someone pays Sarah to copy Ada's passport. She tries on her own.

Available once Ada has sealed her passport and granted consent.

A proper review

Approving re-seals Ben's share to Sarah for this one request. Approve only a request you have checked: it gives Sarah what she needs to open the passport.

Available once Ada has sealed her passport and granted consent.

Ada's access record

Rows recorded by the registry are what OnceRegistry stores on chain (on this page, the in-browser copy records them). Rows recorded by an app happen on someone's device, so the chain cannot see them.

TimeWhoWhatResultRecorded by
Nothing yet. Seal the passport and grant consent to start.

What is cryptographic, and what isn't

Enforced by cryptography

  • The document is encrypted on Ada's device. The exchange stores ciphertext only.
  • The key is split 2-of-3 with Shamir secret sharing, and each share is sealed to a different officer's key. One officer's share cannot rebuild the key.
  • On this page shares are sealed in QoreSeal's hybrid mode (ML-KEM-1024 + X25519). The testnet run sealed to the ML-KEM-1024 keys in the chain's registry alone, chosen explicitly. Nothing falls back silently.
  • Every share and approval is bound to one document and one request, so it cannot be replayed elsewhere.

Enforced by the registry, for anyone who uses it

  • Consent, purpose and end date; revocation; one officer requests and a different officer approves.
  • Each request and approval must be signed with the officer's ML-DSA-87 key, and the contract verifies it on chain. Breaking an officer's classical (secp256k1) key is not enough to approve as them.
  • This is a procedural control. Two officers who collude can exchange shares outside Once and never touch the registry.

Not provided

  • Threshold decryption. The approved officer rebuilds the whole key on her device, and could keep it.
  • Proof of opening. The chain records approvals, not who opened a document.
  • Taking back a document that was already opened.

Full security and threat model

The same flow, live on QoreChain testnet

On chain: real transactions you can open in the explorer.

The deployed contract on qorechain-diana (EVM chain ID 9800) is 0xbCaa5A46Ce5fc9B115f3B6DCca01f1fA06Af0024. Below is the same flow as the demo, run against it on 1 December 2026: 17 transactions, plus three actions the contract refused. Each link opens the transaction in the explorer; switch the explorer to Testnet if it shows mainnet. Anyone can re-check all of it with npm run live -- verify.

  1. OnceRegistry deployed 0xca30a53d...
  2. Example Exchange registers its three officers 0x0fea3684...
  3. Ada registers an ML-DSA-87 key with proof of possession 44E5961446...
  4. Sarah registers an ML-DSA-87 key with proof of possession 4EEEFDD505...
  5. Ben registers an ML-DSA-87 key with proof of possession 5AA79D8F0B...
  6. Tom registers an ML-DSA-87 key with proof of possession E462D3C441...
  7. Sarah publishes an ML-KEM-1024 key to the chain's key registry CB9B52927D...
  8. Ben publishes an ML-KEM-1024 key to the chain's key registry 62CE253387...
  9. Tom publishes an ML-KEM-1024 key to the chain's key registry 75B83507DA...
  10. Ada opens an EVM window scoped to OnceRegistry only E321441CC7...
  11. Sarah opens an EVM window scoped to OnceRegistry only 90ED1C4E2B...
  12. Ben opens an EVM window scoped to OnceRegistry only 79AB4E2401...
  13. Ada grants consent 0x7be58a14...
  14. Sarah requests access alone, signed with her ML-DSA-87 key 0xf6f52f7c...
  15. Sarah tries to approve her own request refused by the contract (SelfApproval)
  16. An approval sent from Ben's account without his ML-DSA-87 key refused by the contract (BadPqSignature)
  17. Sarah requests access for a review, signed with her ML-DSA-87 key 0x4e0a3817...
  18. Ben approves with the grant fingerprint, signed with his ML-DSA-87 key 0xd01d31b2...
  19. Ada revokes consent 0xd8919d10...
  20. Ben requests after revocation refused by the contract (ConsentInactive)