Skip to content
QORECHAIN
Register

Quantum Pass

Qpack

Red packets with random shares on QoreChain.

Share on X

About

Qpack is a red packet game on QoreChain. You drop some QOR in a packet and hang it on a peach blossom tree, and anyone who finds it can grab a share of what is left. Each share is drawn at random by Qtum'd (verifiable randomness on QoreChain), so even the sender cannot tell how big it will be. A packet can be open to everyone or locked with a riddle, a sum or an emoji rebus. Every grab also has a 1 in 10 chance to win a voucher from a common pot, which tops up your next packet. Every packet is sealed when it is dropped. The packet is its own wallet that opens a post-quantum signed EVM window and then drops its key, so the window stays open until the deadline and the sender cannot take the money back. When the packet closes, anything left goes to the common pot. There is no sign-in. Your wallet is made in the browser when you need it, and you top it up from QoreX. Grabbing is free since our relay pays the fees, and a bot keeps eight packets open so there is always something to grab. Live on testnet at qpack.pages.dev.

How it's made

Qpack started from create-qorechain-dapp (fullstack-web template) and uses @qorechain/sdk for all signing in the browser. The app itself is plain Vite and three.js, with no framework. Each packet is a fresh wallet created in the browser. It registers its ML-DSA-87 key with proof of possession, gives post-quantum consent to an EIP-7702 delegation, and opens its own EVM authorisation window sized to the packet (amount, number of payouts and deadline). Then the browser drops the key. The window is what makes the gift safe: value can only leave the packet while that window is open, so nobody can pay out more than was put in, or after the deadline. A pot contract registers packets and takes grabs. Each grab asks Qtum'd for a number, and about 8 seconds later the callback pays a 5 to 30% share from the packet wallet. Locked packets turn the answer into a key that signs the grabber's own address, so nobody can copy a correct answer from the mempool. After the deadline, anyone can sweep the leftover to the pot. The relay is a Cloudflare Worker that pays the fees, seals the bot's packets and sweeps on a timer. The tree is drawn in three.js and the first download is 160 KB gzipped. The chain is read with plain JSON-RPC, so the signing code only loads when you need it, and the relay keeps finished block ranges so the full history loads in about 4 seconds. The hardest part was a voucher that never landed. QoreChain's ecrecover returns nothing for a wallet with a post-quantum key unless that wallet has an EVM window open, and the error was swallowed by our own code. The fix is to open a short window before the signature is checked. Everything was tested live on testnet: sealing, open and locked grabs, one grab per wallet, refused grabs after the deadline, sweeps and vouchers. The 13 contract tests include a fuzz test on the share and an invariant run of 128,000 random calls.

Timeline

QpackQuantum Pass

Pushed 1 commit to main

  • 4ef5de6 Ignore the site's copy of the video · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • 14bd58b Shorter README and a centred cover · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • f2fa953 README in the Qtum'd layout, screenshots, new cover, final video and CI · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • d0cca15 Final demo video · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • ab9f456 Design check skips the saved QCAI report · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • 687856d QCAI audit: report and an answer to each finding · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • 7f0848a Flattened Pot source for the QCAI audit · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • 58bec2e Video, cover, AI usage and testnet results in the README · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • 59ee9f7 Loading bars for stats, balance, feed and leaderboard · hungraw
QpackQuantum Pass

Pushed 3 commits to main

  • e6ef66c Revert "Add a faceless reader under the tree" · hungraw
  • c4f9668 Light the crown as one cloud, ACES tone mapping, Lambert materials · hungraw
  • d449dc3 Warm glow behind the crown · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • 2970ca1 Add a faceless reader under the tree · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • 225f0f9 Drop the key fee note from Withdraw · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • 0d14b44 Brighter again: sun up 10% to offset the warm tint, lighter blossom hearts · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • c21b724 Balance spinner from top-up until the QOR lands; send gas 250k (fee 0.0325); withdraw says the one-off key fee up front · hungraw
QpackQuantum Pass

Pushed 1 commit to main

  • d88cfef Bot keeps eight packets open; vouchers open a short holder window so the chain accepts the signature; post-quantum line on withdraw and drop; first-visit hint; faucet wording; fuzz, invariant and edge · hungraw
QpackQuantum Pass

Pushed 4 commits to main

  • b48bb9b Create the wallet on demand; top up from and withdraw to a connected QoreX, with preset amounts · hungraw
  • ee7392c Painted blossom cards (265k to 39k triangles) and a fuller crown, shaded bark, batched meadow strokes; Withdraw shows once QoreX is connected · hungraw
  • 04cf5ba Bark: painted fissures with bump, knots and ridges on thick limbs, a root flare and a slight bow · hungraw
  • c4ec3ab 36 branches, new packets spread to the free branch furthest from the rest; zooming fades the headline · hungraw
QpackQuantum Pass

Pushed 8 commits to main

  • 3c463a0 Resume a sealing whose fees were already partly spent · hungraw
  • 05880fb Load the signing code after the tree, read recent blocks first, non-blocking font, cache headers, absolute OG URLs · hungraw
  • e97ba9b Read recent blocks first and fill in older history in the background · hungraw
  • 8a30bc2 Merge audit fixes · hungraw
  • ff5d29f Show the opened count once older history is in · hungraw

and 3 more commits

QpackQuantum Pass

Pushed 4 commits to main

  • 45ac4bb Scroll or pinch to zoom the tree · hungraw
  • fd16890 Falling petals start at real blossoms · hungraw
  • 5877fcf Zooming in lowers the view to where the packets hang · hungraw
  • 7dbf245 A few wildflowers in the grass · hungraw
QpackQuantum Pass

Pushed 9 commits to main

  • 1d1509f Plain list: give it the update hook the refresh loop calls, and keep sealing packets out of it · hungraw
  • 1f59807 Keep waiting for the payout when a log query fails, instead of calling a sent grab not sent · hungraw
  • e8179d1 Resume a sealing cut short after its key registration: the fee wait no longer fails on the spent fee · hungraw
  • 1bcf4c9 Claim a sealing packet's branch as soon as its address is known, so a refresh cannot hang it on a second branch · hungraw
  • 9c33baf Count the wallet as keyed once a drop has sealed, so Max and the drop form stop holding back a second fee · hungraw

and 4 more commits

QpackQuantum Pass

Pushed 4 commits to main

  • 9704577 Drop the tree's unused theme options: rim light, back glow, packet glow and fallbacks · hungraw
  • 700dc8a Share one hash helper and viem's zero address; drop unused pot exports · hungraw
  • b6cb719 Tidy main: one reflow helper, plain tassel colour, unused CSS and params gone · hungraw
  • bb65aee Relay: drop the unused signer helpers and ABI entry · hungraw

Comments and questions

  • No comments yet.