Skip to content
QORECHAIN
Register

Post-Quantum dApp

Peal Tender

A buyback vault where a stolen classical key moves nothing.

Share on X

About

Peal Tender is a treasury buyback vault for QoreChain. A project's treasury keeps its payment token (fUSD) in the vault and runs buyback tenders: it opens a tender with a budget and a price ladder, holders offer tokens at a minimum price, the tender clears at one uniform price, sellers are paid, and the bought tokens stay in the vault. Every action that moves treasury money or changes the rules (funding, opening, settling, sweeping, changing signers) must carry a fresh ML-DSA-87 signature that the contract verifies on chain with QoreChain's pqcKeyStatus and pqcVerify precompiles. Being the transaction sender is never enough, so an attacker who steals the treasury's classical secp256k1 key, as the Q-Day Drill's attacker does, cannot move anything. v1, a minimal single-signer vault, is live on qorechain-diana for the Q-Day Drill. v2 adds a 2-of-3 post-quantum signer set, a timelock with a daily cap, permissionless settlement, and buybacks run as sealed sales on Peal Sealed Auction.

How it's made

Solidity contracts built with Foundry, plus TypeScript operator scripts on @qorechain/sdk and @qorechain/evm. - Authorisation: a PqAuth library reads the signer's key with the pqcKeyStatus precompile (requiring ML-DSA-87 with proven possession) and verifies signatures with pqcVerify over a 256-byte message binding chain id, contract, action, nonce, deadline and an argument hash. It fails closed when a precompile returns empty data. v2 extends this to a 2-of-3 signer set. - Accounts: created from mnemonics with an ML-DSA-87 key registered with proof of possession; every native transaction is hybrid-signed. - EVM windows: the operator opens a window scoped only to the vault and its tokens for a single transaction, then closes it. Contract creation runs under a short unscoped window. - Clearing: a uniform-price tender clearing rule, ported from the author's earlier project Peal and credited in the README. - Tests: unit, fuzz and invariant tests with mocked precompiles, cross-language vectors, and live probes against the real precompiles on testnet. - Hard parts: precompiles can't run in local test chains, so everything is tested against mocks plus live probes. Inactive precompiles return empty data instead of reverting. Scoped windows refuse contract creation. The shared post-quantum toolkit lives in a separate open-source repository, qore-pq-kit. Built with AI coding agents; see AI_USAGE.md.

Timeline

Peal TenderPost-Quantum dApp

Newly verified on chain: MCP server or qore CLI, QoreScan

Peal TenderPost-Quantum dApp

Pushed 2 commits to main

  • 12bcfd2 A purpose-built cover image for the fest project page (docs/brand/cover) (#14) · Adityaakr
  • d30778e The submission video: a 2:59 narrated explainer and demo, its plan and composition source in docs/video (#13) · Adityaakr
Peal TenderPost-Quantum dApp

Pushed 2 commits to main

  • 97011c2 The Peal family's logo system: Peal, Tender, Sealed Auction and Bidder marks, lockups and favicons in docs/brand; Tender adopts its mark (#12) · Adityaakr
  • 8358f5a Peal Tender's own identity: a payment-order landing built on diagrams of the mechanism, real on-chain evidence, the category's requirements; app restyled (#11) · Adityaakr
Peal TenderPost-Quantum dApp

Pushed 2 commits to main

  • 4d6d156 Design: a short Peal family guide (shared layer only); each product owns its identity (#10) · Adityaakr
  • 7a0d21c Design standard, revised: premium and professional (paper, one cobalt accent, Newsreader/Inter/Plex Mono, rule lists, schematic diagrams, evidence as data) (#9) · Adityaakr
Peal TenderPost-Quantum dApp

Pushed 1 commit to main

  • 23592b6 Design language for all three entries, and the Peal Tender landing page rebuilt to it (#8) · Adityaakr
Peal TenderPost-Quantum dApp

Pushed 1 commit to main

  • d9c30ff Landing page and wallets: guest account, QoreX and MetaMask; holder actions; Vercel hosting (#7) · Adityaakr
Peal TenderPost-Quantum dApp

Pushed 1 commit to main

  • e937053 v2 web app in the Peal design language: seven pages, price ladder, proposal builder and in-browser signature checker (#6) · Adityaakr
Peal TenderPost-Quantum dApp

Pushed 1 commit to main

  • b892c6e v2: fit the deploy and runbook to a 10 QOR budget (#5) · Adityaakr

Comments and questions

  • No comments yet.