
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
Comments and questions
- No comments yet.