
Encrypted Apps
Truebill
Invoices that humans and AI agents can trust: quantum-safe signed, encrypted, and payable only to the on-chain address.
About
Invoice fraud is mostly a payout-redirect problem: a scammer impersonates a supplier and sends "new bank details". TrueBill removes the thing that gets forged. An invoice has no payout field. Money can only go to the address in an on-chain registry, and changing it takes the registered key's signature plus a 72-hour public delay. Every invoice is signed with the business's ML-DSA-87 key, encrypted in the browser to the customer's ML-KEM-1024 key, and anchored on QoreChain by its hash. Names are only claims, so TrueBill flags look-alike senders, gives a verified badge for domain proof, and shows each sender's on-chain track record. An AI accounts-payable agent pays unattended, but code decides, not the model. Six checks must pass, and the model only explains the outcome. On testnet the hosted agent paid genuine invoices, rejected a scam and a tampered one, and held a cryptographically valid look-alike. Try it without a wallet: https://truebill.lysthq.com/#/verify
How it's made
pnpm monorepo. Solidity (Foundry) contracts: BusinessRegistry (keys, payout, 72h timelock) and InvoiceAnchor, verifying ML-DSA-87 signatures on chain through QoreChain's pqcVerify precompile. Shared TypeScript packages handle sealing (QoreSeal, ML-KEM-1024), the six checks, look-alike detection and native-lane calls. React app with wagmi, RainbowKit and the QoreX connector, plus a recovery-phrase mode that signs hybrid native transactions in the browser. App, ciphertext store and agent run on Fly.io. The agent's payments are post-quantum signed: approve and pay go in one hybrid (secp256k1 + ML-DSA-87) native transaction using MsgCrossVMCall, so no EVM window is needed. What was hard: EVM windows expiring after about five hours; cross-VM events not appearing in eth_getLogs, so we search transactions and decode calldata; and the real precompile rejecting a signature our local test verifier accepted. Limits: testnet only, no independent audit
Timeline
Newly verified on chain: Cross-VM, EVM to Native
Pushed 28 commits to main
- 949de27 Added a post-quantum signature for transaction · ETIM-PAUL
- 0260524 LLM analysis engine (OpenAI) · ETIM-PAUL
- 6f8272f Reputation history and Agentic analysis · ETIM-PAUL
- 90d2642 Trust beyond the address · ETIM-PAUL
- 835984d fixed shared for invoice · ETIM-PAUL
and 23 more commits
New project.
Comments and questions
- No comments yet.