Skip to content
QORECHAIN
Register

Protocol Builders

Veil

Public payments, private purpose — authorization enforced by the chain

Share on X

About

Every payment needs two things: someone must enforce that only the owner can move the money, and someone must know what it was for. Veil puts the first on the chain and seals the second for exactly the people who need it. The chain enforces authorization. Payments are qledger-v1 transfers signed with ML-DSA-44. If a batch moves funds without the owner's signature, any watchtower can prove it, and Diana rejects the batch and slashes the operator. We showed this live: a batch that drained a payer without a signature was rejected two blocks later, and 1,000 QOR of the operator's bond was slashed. Only the payee and an auditor read the meaning. The invoice is sealed with ML-KEM-1024 to those two readers, signed by the payer's transfer key and bound to the exact transfer bytes. The ciphertext lives on a public chain forever, so it has to be post-quantum. Known in seconds, settled in an hour. L1 fixes the inbox order and qledger-v1 execution is deterministic, so a payment's outcome is fixed by the block it lands in. Each reader replays the inbox itself and marks the invoice determined once the transfer has executed, the invoice checks out, and no pending batch contradicts its replay. On Diana that took about 6 s after Pay. The invoice becomes settled when its batch finalizes and the settlement receipt verifies, about an hour later. The one-hour window only decides when L1 pays out withdrawals, as long as one honest watcher is online. Typical case: a Travel Rule-style transfer between providers. The transfer stays publicly verifiable; the originator and beneficiary details reach only the receiving provider and the compliance auditor, within seconds.

How it's made

Rollup - veil-pay-1 is a based qledger-v1 optimistic rollup with fraud proofs, built with QoreChain RDK 0.9.0. - Payments are qledger transfers signed with ML-DSA-44. Invoices are QoreSeal envelopes (ML-KEM-1024, anonymous slots), posted in the same L1 transaction as the transfer. Protocol, Veil v1 - Canonical invoice body. It names the auditor by the hash of the auditor's key in the chain's KEM registry. The size is checked before sealing; the worst case is 6,135 of 6,144 bytes. - A reader checks every invoice: the envelope has exactly two slots; the payer's signature verifies; the amount and beneficiary equal those of the transfer; the replay shows that these exact transfer bytes executed. - Invoice states: - determined: the checks pass, the transfer and its envelope are consecutive messages of one successful L1 transaction, and the reader's watcher, replaying the inbox from genesis, finds no pending batch that contradicts it; - settled: the batch is also finalized and its ML-DSA-87 settlement receipt verifies. Only settled invoices are imported and exported; - disputed: a batch the entry depends on diverges from the replay. The watcher holds its own result and any watcher can send the fraud proof. Imports are deduplicated by (payer, executed nonce) and by (payer, invoice id). - Reader keys. The payee publishes a binary statement to the inbox, signed by its L2 account key. The first valid statement per account is binding, so replays and substituted keys are rejected. - Veil Desk: a four-column web console (payer, public view, payee, auditor) that pays, batches, shows each reader's state and timing, and exports the auditor's register. On Diana 1. Payment with a sealed invoice: batch 0, read by both readers. 2. Withdrawal to L1 after finality. A second claim is refused. 3. Settlement receipt verified with qorollup receipt verify, with RDK, and independently. 4. Fraud demo. The operator submitted a forged batch that drained the payer without a signature. Diana upheld a challenge two blocks later: 1,000 QOR bond slashed, inbox rolled back, honest replacement batch finalized. Our watcher, on a separate account, submitted the same proof in the same block; a third-party watcher was ordered first. 5. Veil v1 live run. A payee and an auditor in separate directories, sharing nothing but the chain, accepted the same invoice. A repeated import was a no-op. 6. A third-party probe posted to our inbox was included in the next batch. 7. Fast finality, measured twice. A Desk payment was determined 5.9–6.5 s after Pay for both readers and settled about an hour later with all six receipt checks. Run 2: payment in block 10,496,676, batch 7 finalized at 10,499,213. Verification - Every claim has a transaction link and evidence in the repository. - Batch roots are reproduced by two independent implementations: RDK in Node, and a Python replay that shares no code with it. - The protocol was designed and reviewed in GitHub issues by two AI agents under the owner's direction. What was hard - Fitting the chain's rules. New optimistic rollups on Diana must run qledger-v1, a public ledger, so privacy had to live in sealed invoices bound to public transfers. A confidential VM was not an option. - The 6,144-byte post limit. The reader-key statement does not fit as JSON (about 7 KB even in base64), so it is a fixed binary layout. The invoice body has a hard budget, and its size is checked before sealing. - Real fraud-proof economics. On Diana the whole 1,000 QOR bond is slashed inside the challenge transaction itself. Third-party watchers race for the reward, and one of them beat our watcher by its position within the block. - Finality without overclaiming. The hour is the challenge window, not the time to know the outcome, but calling a payment known early is only honest if the reader replays the inbox itself and watches every pending batch. We measured it instead of estimating: about 6 s, 4–5 blocks, short of our 2–3 block target. Most of that time is Desk preparing and signing, not the chain. - Trusting nothing we produced ourselves. Every root is reproduced by two independent implementations, and every step was checked against chain reads. The live runs stopped twice on discrepancies: a registry key returned as hex, and a working tree that did not match the commit. Apache-2.0.

Timeline

VeilProtocol Builders

Pushed 1 commit to main

  • 61e3651 README: describe determined and settled in the intro · claude
VeilProtocol Builders

Earned a Ship Weeks badge.

VeilProtocol Builders

Earned a Ship Weeks badge.

VeilProtocol Builders

Pushed 4 commits to main

  • 8c208c2 Bound the SDK signer's REST read before signing · zukaman
  • 85ca234 Close a Diana RPC connection that misses the time limit · zukaman
  • f493529 Keep the last lookup error out of the timeout message · zukaman
  • 114620c Bound Desk RPC connection and transaction submission waits (review finding 1) · zukaman
VeilProtocol Builders

Pushed 1 commit to main

  • c9b651c Merge pull request #18 from ryssroad/fix/desk-rpc-submission-timeout · ryssroad
VeilProtocol Builders

Pushed 1 commit to main

  • e4db3f6 Keep Desk available when demo recording fails · zukaman
VeilProtocol Builders

Pushed 1 commit to main

  • b36b397 README: update the team note · claude
VeilProtocol Builders

Pushed 1 commit to main

  • a10833a Merge pull request #17 from ryssroad/fix/desk-recording-failure · ryssroad
VeilProtocol Builders

Pushed 1 commit to main

  • d02bee3 Update the video link · claude
VeilProtocol Builders

Pushed 1 commit to main

  • b5d0db6 README: state the actual team composition · claude
VeilProtocol Builders

Pushed 1 commit to main

  • 8dd09c4 Link the video in the README and both replays · claude
VeilProtocol Builders

Pushed 32 commits to main

  • 4abdbe5 Publish the run 2 finality replay under docs/demo/finality (#12) · oxxroad
  • 1ca6ff1 Report both finality runs and name the block, not the reader, in Desk (#12) · claude
  • c3347fe Record Diana finality comparison after PR 15 · oxxroad
  • 48ccede Honor the inclusion deadline between transaction lookups · oxxroad
  • e9965ef Desk: address the second review of PR 15 (#12) · claude

and 27 more commits

VeilProtocol Builders

Pushed 1 commit to main

  • 5942aac Merge pull request #16 from ryssroad/finality-run2-publish · ryssroad
VeilProtocol Builders

Pushed 1 commit to main

  • a2a8562 Merge pull request #15 from ryssroad/faster-determination · ryssroad
VeilProtocol Builders

Pushed 1 commit to main

  • cebcd85 Merge pull request #14 from ryssroad/evidence/issue-12-finality · ryssroad
VeilProtocol Builders

Pushed 6 commits to main

  • 9ab23d1 Fast finality: a verdict belongs to the first event that could reject (#12) · claude
  • d3a068c Fast finality: link a verdict only to a unique owner (#12) · claude
  • b573f72 Fast finality: attribute a verdict to the submission it rejected (#12) · claude
  • 5da32d0 Fast finality: address the second review of PR 13 (#12) · claude
  • 9ba5566 Fast finality: address the review of PR 13 (#12) · claude

and 1 more commit

VeilProtocol Builders

Pushed 1 commit to main

  • 582e212 Merge pull request #13 from ryssroad/fast-finality · ryssroad
VeilProtocol Builders

Pushed 4 commits to main

  • c19c329 Demo: pass epoch milliseconds to the Desk replay hooks · claude
  • 6048b93 Merge pull request #11 from ryssroad/desk-live · ryssroad
  • 92d2faf Static replay demo of the live Desk run · claude
  • 6b16115 Record the live Desk run · oxxroad
VeilProtocol Builders

Pushed 6 commits to main

  • e6d8cf7 README: move the Desk section after verification · claude(not counted: no real change)
  • 3a5d01a Merge pull request #9 from ryssroad/desk · ryssroad
  • a87a412 Merge pull request #10 from ryssroad/pitch · ryssroad
  • 9d4d4b8 README: lead with the trust model, chain-enforced authorization and private meaning · claude
  • cd5f9d9 Show replayed withdrawals in Desk and document the operator demo · oxxroad

and 1 more commit

VeilProtocol Builders

New project.

Comments and questions

  • No comments yet.