Skip to content
QORECHAIN
Register

Post-Quantum dApp

SWEEFT

Post-quantum commerce ecosystem where every payment needs an ML-DSA-87 signature verified on-chain

Share on X

About

Sweeft secures the whole deal, not just the money. Ordinary marketplaces tell you what to buy and leave the hard parts — how to pay safely, how to get paid, how the item actually reaches you — to trust, DMs and hope. Sweeft replaces that trust with post-quantum proof at every leg of the trade: - Where you buy/sell. On-chain listings with pinned prices and metadata hashes, QoreX post-quantum login, and AI agents that negotiate price inside a floor/target mandate — the seller signs the agreed price as an ML-DSA-87 quote (purchaseWithQuote) before anything moves. - How you pay / get paid. Escrow is only the enforcement rail: the buyer's funds are locked in the Vault, and every movement out — release, refund — needs the buyer's ML-DSA-87 signature verified on-chain by pqcVerify. A stolen classical key moves nothing. Fees and treasury are frozen at funding, so later governance can't rewrite an in-flight deal. - How items are received/sent. Delivery is proven, not promised: the carrier signs a canonical tracking payload the Vault verifies on-chain, and DAO-approved verifiers add a second evidence layer. Only real proof of delivery blocks a buyer's refund — no fake "shipped" status can lose the buyer their money. - When it breaks. Either side can raise a dispute to a randomly drawn staked resolver panel (slashing for non-voters), with a real appeal to a larger 5-resolver panel. Governance is a stake-weighted DAO (timelock + guardian veto) that owns the vault, registry and board — so the rules themselves can't be captured. Every leg is verifiable by anyone: proof pages decode any transaction or escrow into plain English, the API is public and read-only, and wrong-key / tampered-amount attacks revert on testnet with receipts linked. tools/reverify.py re-checks every recorded hash: 223 passed, 0 failed. Live on QoreChain Diana (EVM chain 9800). Vault (v11): 0xE0Cf8Ec42Fa21d69487DB41447cd7812660cb48c. Full contract list in docs/deployments.md. Every browser action runs on the native lane (QoreX signAndBroadcast, hybrid MsgCrossVMCall) — no EVM windows in the user path. All test tokens are valueless.

How it's made

Contracts (Solidity, Foundry, 227 tests passing, incl. invariant/fuzz/adversarial suites): - SweeftVault. Escrow with PQ-gated release and refund. Per-escrow nonces stop replay. Fee/treasury frozen at creation so later governance cannot move in-flight money. Credits-only settlement (pull payments) — no re-entrancy surface while paying out. - SweeftMarketplace. On-chain listings pin price + metadata hash; purchaseWithQuote settles against a seller-signed ML-DSA-87 quote. - SweeftOracleRegistry. DAO-governed verifier allowlist, configurable M-of-N threshold (1 on testnet), keyVersion pinned to ML-DSA-87. - SweeftDisputeBoard. Random staked panels (committed future-block seed), 5-resolver appeals, slashing, proof-based expiry. - SweeftDAO2. Stake-weighted votes (QOR escrowed per vote), allowlisted targets, stake quorum, 2-day timelock, proposer bond, guardian veto. Owns vault/registry/board. App: Django monolith; chain is the source of truth, DB is a projection. QoreX login = ML-DSA-87 challenge against the registered key. Every browser action runs natively (QoreX native signAndBroadcast, hybrid-signed MsgCrossVMCall) — no MetaMask, no EVM windows in the UI; sync_native indexes native calls. AI assistant via the Meta Model API through server-side tools; the model can never supply a wallet or authorize spending; without MODEL_API_KEY it runs in an explicitly labeled demo mode. Quality gates: 213 Django tests (incl. replay-safety, mandate, verify-page regression) + CI (Foundry, Django, Slither/pip-audit). QCAI audit: 72/100 on live v11 (Stage 9, 1 Dec 2026); every finding mapped in docs/AUDIT.md; report PDF in-repo. Reusable packages ship with the repo: Foundry contracts, a Python client, and a read-only MCP server. Stack: Solidity + Foundry, Django, PostgreSQL (SQLite demo), QoreChain Diana (EVM 9800), QoreX native only. Live data is seeded team-wallet testnet activity (160 listings, 21 escrows across all lifecycle states — the app labels it "Seeded demo"), with native-lane listings #107–160 and the discounted quote settlement #2 (0.05 vs 0.06 QOR, 0xb1ddf102…) proven on-chain

Timeline

SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • f3cda0a Repo cleanup: archive stale pre-submission docs to docs/archive, sync BUILD_PAGE_UPDATE to Stage 9, append v11 inventory, complete keeper hashes, fix README links · Dekantiok
SWEEFTPost-Quantum dApp

Earned a Ship Weeks badge.

SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 1df0c44 Pin qorechain-qoresign==0.2.0 so kit scanner verifies QoreSign · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 0a2d67a Fix listing titles, dispute gating, hash overflow, copy buttons, busy states, and dashboard scope · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • d1409b5 Boot can no longer stall before gunicorn binds · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 773163a Submission prep: refresh counts, warm-up evidence, jury one-liner · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 48f3308 README: center badges, record December v11 hardening · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • db9d073 Strengthen menu frost · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 9ed4866 Fix invisible white buttons; rebuild stylesheet · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 610b05a Name the receipt link Receipt; harden proof hash lookup · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 6e3fb4f Fix selector hex prefix across web3 versions · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • d3b0f4a Verify native-lane txs; AI find serves only chain-active listings; buyer toasts · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 2e61c41 Survive pasted-var junk in chain URLs; AI confirm uses REST+RPC reader · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 9478b20 Release escrows directly from the wallet; harden testnet guards · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 931c6e0 Send the CSRF token on the escrow release POST · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 99f0025 Link reconciled escrows to the right listing · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • c0a4c86 Index the escrow created inside a v11 deposit purchase · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 2e5b072 Fix the buyer key preflight so a proven PQ key can buy · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 1cb56e0 Record the live on-chain wallet login proof · Dekantiok
SWEEFTPost-Quantum dApp

Pushed 1 commit to main

  • 7cb0768 Read the login tx over the consensus RPC when REST is unreachable · Dekantiok

Comments and questions

  • No comments yet.