Skip to content
QORECHAIN
Register

Encrypted Apps

Once

KYC you hand over once, that no single insider can read.

Share on X

About

Every crypto user sends passport scans and selfies to platform after platform, and each copy sits in a database waiting to leak. The biggest risk isn't hackers but insiders: in 2025, bribed support agents at a major exchange copied customers' government ID images, and those customers were then targeted by scammers. Once fixes this. Users encrypt their ID documents on their own device and share them by consent. Each document's key is split 2-of-3, and each share is sealed with ML-KEM-1024 to a different compliance officer's key registered on QoreChain, so no single employee can open a file alone. Opening needs a request from one officer and an approval from another, each signed with their ML-DSA-87 key and verified inside the contract through QoreChain's PQC precompiles. Every consent, access request, approval and revocation is recorded on QoreChain, so users can see who asked for their ID, who approved it, and when. ID documents never expire in an attacker's hands: your passport number and face stay the same for decades. That makes KYC data the ideal target for "harvest now, decrypt later". Once keeps it sealed with post-quantum encryption, before and after Q-Day. Live on QoreChain testnet: OnceRegistry 0xbCaa5A46Ce5fc9B115f3B6DCca01f1fA06Af0024.

How it's made

What I set out to build KYC data leaks through insiders. One bribed employee with database access can copy thousands of IDs. I wanted a design where a customer hands over their ID once, and no single person at the exchange can read it alone. Architecture Client-side sealing: the ID is encrypted on the customer's device with AES-256-GCM. The document key is split 2-of-3 with Shamir secret sharing. Post-quantum sealing: each share is sealed with QoreSeal to a different compliance officer's ML-KEM-1024 key (hybrid ML-KEM-1024 + X25519 in the web app; ML-KEM-1024 keys from the chain's registry on testnet). The exchange stores only ciphertext. OnceRegistry (Solidity, on QoreChain testnet): records consent (purpose, end date, revocation), access requests and approvals. A request must come from one officer and the approval from a different one, within a day. Grants: the approving officer re-seals their share to the requester for that one request. The grant's fingerprint is recorded on chain and checked before opening. QoreChain kits and network features used ML-DSA-87 key registration with proof of possession for every account, via hybrid-signed transactions (secp256k1 + ML-DSA-87). ML-KEM-1024 key registry (MsgRegisterKEMKey): customers' apps read the officers' encryption keys from the chain. PQC precompiles inside the contract: every request and approval carries the officer's ML-DSA-87 signature. The contract fetches the officer's registered key (0x0a02) and verifies the signature (0x0a01). Someone who breaks an officer's classical key still can't approve. EVM authorisation windows, opened with post-quantum signatures and scoped to OnceRegistry only. Kits: @qorechain/sdk, @qorechain/evm, @qorechain/qoreseal, @qorechain/qoresign. What was hard Being honest about what's cryptographic and what's procedural. 2-of-3 stops a single insider, but two colluding officers can still open a file. SECURITY.md states this, along with the other limits. Making on-chain signature checks match byte for byte. The contract rebuilds the exact signed text from its own inputs. Tests use stand-in precompiles that accept only signatures already verified with real ML-DSA-87. Verifiable evidence. One command, npm run live -- verify, rebuilds the contract from source, compares it to the deployed code, re-checks every testnet transaction, and re-verifies every ML-DSA-87 signature against the officers' keys on chain. Result: 53 tests, a live web demo, and a full testnet run with three refusals by the contract: a self-approval, an approval without the officer's post-quantum key, and a request after consent was revoked.

Timeline

OnceEncrypted Apps

Pushed 1 commit to main

  • ea8fa11 AUDIT: verify passed on testnet with the ML-DSA-87 signature re-check · Guzman0
OnceEncrypted Apps

Pushed 1 commit to main

  • 508204d AI_USAGE: the review, the on-chain ML-DSA-87 work and how it was checked · claude
OnceEncrypted Apps

Pushed 1 commit to main

  • 8ef1a7f AUDIT: second deployment with on-chain ML-DSA-87 checks; cover and video done · claude
OnceEncrypted Apps

Earned a Ship Weeks badge.

OnceEncrypted Apps

Earned a Ship Weeks badge.

OnceEncrypted Apps

Earned a Ship Weeks badge.

OnceEncrypted Apps

Pushed 1 commit to main

  • 438a721 Add the demo video link · claude
OnceEncrypted Apps

Pushed 1 commit to main

  • e46d869 Web app: the compliance desk follows the exchange Ada seals for · claude
OnceEncrypted Apps

Pushed 1 commit to main

  • 2a587be After the redeploy: docs, offline demo and web app match the ML-DSA-87 contract · claude
OnceEncrypted Apps

Pushed 1 commit to main

  • ce1a2d4 Testnet run with on-chain ML-DSA-87 checks · Guzman
OnceEncrypted Apps

Pushed 1 commit to main

  • 0a2d12e OnceRegistry: check officers' ML-DSA-87 signatures on chain · claude
OnceEncrypted Apps

Pushed 1 commit to main

  • eff73f6 Web app: write the testnet contract and all transaction links into the page HTML at build time · claude
OnceEncrypted Apps

Pushed 1 commit to main

  • 41bdeab Web app: new logo and favicon, start-here buttons, share chips after sealing, hints on locked steps, mobile fixes · Guzman
OnceEncrypted Apps

Pushed 1 commit to main

  • 7700ac2 AUDIT: on-chain verification passed · Guzman
OnceEncrypted Apps

Pushed 1 commit to main

  • 82b6f62 verify: retry the REST endpoint instead of stopping on a dropped request · Guzman
OnceEncrypted Apps

Pushed 1 commit to main

  • 9e44eb8 AUDIT: npm audit results explained · Guzman
OnceEncrypted Apps

Pushed 1 commit to main

  • 91aef5e Audit pass: wipe keys on failure paths, size limits, deny flow, bundled fonts and CSP, accountless on-chain verify, more tests; AUDIT.md · Guzman
OnceEncrypted Apps

Pushed 1 commit to main

  • 133e192 Say which on-chain transactions are post-quantum signed, and what bounds the classical ones · Guzman
OnceEncrypted Apps

Pushed 1 commit to main

  • 910183c Explorer links use native hashes; contract links open its deployment · Guzman
OnceEncrypted Apps

Pushed 1 commit to main

  • 5e1bb92 Explorer links for EVM transactions · Guzman

Comments and questions

  • No comments yet.