Security: who can move money
Every sensitive action in Sweeft is gated on-chain. No administrator, relayer or AI can move escrowed funds outside these rules. Each gate below is enforced by the contract and verified with ML-DSA-87 against keys registered on QoreChain.
Release escrow to seller
on-chain
- Who can act
- Buyer (guardian) — ML-DSA-87 signature
- Mechanism
- SweeftVault.release() verifies the buyer's signature against the key registered on chain (pqcKeyStatus → pqcVerify).
- Replay protection
- Per-escrow nonce in the signed message (qorechain-msg-v1|…|nonce=…) — a used signature can never settle twice.
- Evidence
- testnet attack sims: wrong-key and tampered-amount signatures both revert
Refund after deadline
on-chain
- Who can act
- Buyer — same ML-DSA-87 gate
- Mechanism
- refundAfterDeadline() with the refund-tagged message; blocked once a verifier attests.
- Replay protection
- Same per-escrow nonce.
- Evidence
- deadline path tested in Foundry (deadline, attest-blocked refund)
Carrier delivery attestation
on-chain
- Who can act
- Registered carrier (ML-DSA-87)
- Mechanism
- attestCarrierEvidence() verifies the carrier's signature over the canonical tracking payload on-chain; carrier account must have a registered proven key.
- Replay protection
- Payload hash is bound to the escrow id and event timestamps.
- Evidence
- Demo Carrier attested on Diana (see e2e_logistics.py)
Oracle attestation
on-chain
- Who can act
- DAO-approved verifier (registry)
- Mechanism
- SweeftOracleRegistry is owned by SweeftDAO2; the vault checks isVerifier before marking evidence.
- Replay protection
- Attestation flips evidenceAttested — refund path closes.
- Evidence
- registry ownership migrated via on-chain DAO proposal
Dispute settlement
on-chain
- Who can act
- Board contract (staked resolvers)
- Mechanism
- Only the board may call resolveDispute; it needs a 2-of-3 resolver majority (v6: random panel from the staked pool, 5-resolver appeal). Stakes (≥20 QOR, v6: +100% of escrow) lock while serving.
- Replay protection
- Disputed status is terminal for the normal paths.
- Evidence
- v5 dispute E2E settled on Diana; resolvers claimed their 10%-of-fee rewards (v6 pays a fixed bond fee — v6 live with two PQ releases, no dispute run yet)
Governance changes
on-chain
- Who can act
- SweeftDAO2 — stake-weighted (v6: QOR escrowed per vote, locked until final; v5 live: one wallet, one vote), allowlisted targets
- Mechanism
- Calls are restricted to the oracle registry, vault and dispute board; params cannot be smuggled to arbitrary addresses.
- Replay protection
- Proposals are single-execution; description hash binds the call.
- Evidence
- registry ownership migrated from DAO v1 by executed proposal
Relayer spending (dev/testnet only)
on-chain
- Who can act
- Project relayer account (never a user key)
- Mechanism
- The Cosmos lane invokes the same contracts; no EVM windows required for users. The testnet relayer keeps a scoped authorization window, hybrid-signed, so a stolen classical key is limited to the window budget.
- Replay protection
- Window nonce / expiry on chain.
- Evidence
- relayer health on this page; deployment history in docs/deployments.md
Escrows indexed
11
Vault
0xE0Cf8Ec42Fa21d69487DB41447cd7812660cb48c
Dispute board
0x9Ccc3218df9cbe24063F30e4f46Ec9778BB47772
Relayer (gas payer for signed calls)
not configured
- Balance
- —
- Relayer authorization window
- unknown
- RELAYER_MNEMONIC is not set — releases/refunds cannot be relayed
Verify it yourself
The proof pages decode any transaction or escrow into plain English: signatures tier, nonce binding, and why the same signature can never settle twice. Every attack in the threat model: forged release, tampered message, wrong carrier: is recorded as a reverting transaction on Diana, linked from tools/e2e_*.py outputs and docs/deployments.md.