Skip to content
QORECHAIN
Register

Post-Quantum dApp

Rosca

The savings circle the organiser can't run away with.

Share on X

About

Rosca is a chit fund (kuri in Kerala, kameti in North India, tanda, hui or ajo elsewhere) where the pot is locked on QoreChain. Members pay the same amount every month and each month one member takes the pot, chosen by the lowest bid as in a real chit fund. No single key can move the pot, not even the organiser's: paying out needs the winner's post-quantum ML-DSA-87 signature, checked on chain with pqcVerify, plus a majority of members. A leaked classical (ECDSA) key moves nothing. Testnet only.

How it's made

Plan (updated as it lands): Solidity contracts on the QoreChain EVM, built and tested with Foundry. A RoscaPool contract holds each circle's pot in fUSD. Members join through a scoped EVM window that allows only the Rosca contracts. Each month members bid; the lowest bid wins and the discount is shared out. The payout checks the winner's ML-DSA-87 signature through the pqcVerify and pqcKeyStatus precompiles and needs a majority of members, so the organiser has no key that can move the pot. Two-stage QCAI audit (before and after fixes). A web app with the QoreX wallet for members. Started from create-qorechain-dapp (foundry template).

Timeline

RoscaPost-Quantum dApp

Pushed 1 commit to main

  • c65deb4 README: the site now lives at rosca.exprmnts.fun · nikhil-pn
RoscaPost-Quantum dApp

Pushed 8 commits to main

  • 117f1d8 Scripts: faucet and bot accounts for Try it yourself · nikhil-pn
  • 1ee1bde Keeper: two bots join visitors' 3-person circles and play them to the end · nikhil-pn
  • 7a1d2cd Faucet function and REST broadcasting for the browser, built with esbuild · nikhil-pn
  • cb916f2 Try it yourself: a visitor runs a real round from the browser with their own ML-DSA-87 key · nikhil-pn
  • 3cdd701 Web: Try it yourself on the main page; visitors' circles stay out of the live story · nikhil-pn

and 3 more commits

RoscaPost-Quantum dApp

Pushed 19 commits to main

  • 32955f1 Scripts: estimate gas with a 30% margin, since the testnet bills half the gas limit · nikhil-pn
  • 66d2426 Web: page layout with the live phone pinned beside the story on desktop, stacked on mobile · nikhil-pn
  • 7d70c2a Web: hero with the one-line story and live stats tiles · nikhil-pn
  • c5a7173 Web: how a round works, live feed, who can move the pot, the thief test and the proof table · nikhil-pn
  • 59f8fc3 Web: demo member names, block, log and receipt helpers for the live feed · nikhil-pn

and 14 more commits

RoscaPost-Quantum dApp

Pushed 1 commit to main

  • 21c5b1a Lock script dependencies (QoreChain SDK 0.14.0, viem, tsx) · nikhil-pn
RoscaPost-Quantum dApp

Pushed 10 commits to main

  • c1a1841 Web: Inter font files (SIL Open Font License), the open match for SF Pro · nikhil-pn
  • dfbd5f5 Web: page skeleton and base tokens: SF Pro or Inter, light grey page, grey decimals · nikhil-pn
  • 9eee893 Web: phone card, status bar, top bar and the savings balance · nikhil-pn
  • 2701f88 Web: the leather wallet with a silver and a rose-gold Rosca card, pure CSS · nikhil-pn
  • 366390b Web: circle chips (office kuri, family chit, friends kameti), dark when selected · nikhil-pn

and 5 more commits

RoscaPost-Quantum dApp

Pushed 14 commits to main

  • 8c86870 Ignore a local scratch folder · nikhil-pn
  • f7903d1 Ignore only the root lib/ (Foundry dependencies), not scripts/lib · nikhil-pn
  • 3dba153 Scripts: testnet settings, fUSD address and where keys live · nikhil-pn
  • a5cfe86 Scripts: throwaway Ethereum-type testnet accounts for the deployer and members · nikhil-pn
  • c84ae8e Scripts: allow .ts import paths (run with tsx) · nikhil-pn

and 9 more commits

RoscaPost-Quantum dApp

Pushed 11 commits to main

  • 990f014 Tests: mock PQC precompiles and a mock fUSD token · nikhil-pn
  • 43ad942 Tests: shared set-up with five members, keys and round helpers · nikhil-pn
  • 9e93397 Tests: joining needs a proven ML-DSA-87 key; a full circle starts (8 tests) · nikhil-pn
  • e55a0e8 Tests: paying a share, once a round, before the auction ends (6 tests) · nikhil-pn
  • 40ae12b Tests: discount auction, the cap, closing and no-bid rounds (11 tests) · nikhil-pn

and 6 more commits

RoscaPost-Quantum dApp

Pushed 12 commits to main

  • 65d0a9a Docs: build plan and how a circle works · nikhil-pn
  • 7d651fa Contracts: interface for the PQC verify and key status precompiles · nikhil-pn
  • f136ee6 Remove the template's Counter contract · nikhil-pn
  • efaa7cb Contracts: PqcGate reads a registered ML-DSA-87 key and checks signatures · nikhil-pn
  • 0510a9c Contracts: minimal ERC-20 interface for the circle's token · nikhil-pn

and 7 more commits

RoscaPost-Quantum dApp

New project.

Comments and questions

  • No comments yet.