Pushed 1 commit to main
- 084291b docs: project log · Adityass0925

Post-Quantum dApp
Payroll that survives Q-Day: streaming stablecoin salaries guarded by on-chain ML-DSA-87 signatures
Quantum-safe stablecoin payroll on QoreChain. Salaries stream to employees every second, and every action that could steal money (adding staff, changing pay, moving the treasury, redirecting a paycheck) needs an ML-DSA-87 signature that the contract verifies on chain with QoreChain's pqcVerify precompile. Employees' earned wages are ring-fenced from the employer, and only an employee's own post-quantum key can change where they are paid, which stops payroll-diversion fraud. If Q-Day hands an attacker the employer's ECDSA key, the most they can take is a capped daily allowance, which the employer can freeze instantly.
Architecture: a Solidity 0.8 contract (LatticePayroll) on the QoreChain EVM, a TypeScript CLI and a React dashboard, scaffolded with create-qorechain-dapp (hardhat and viem-wagmi templates). Post-quantum design: every sensitive action carries an ML-DSA-87 signature over a human-readable message that the contract builds itself, with a per-signer nonce and a deadline, in QoreSign's message domain. The contract reads the signer's registered key from the pqcKeyStatus precompile, requires proof of possession, and verifies the signature with pqcVerify. No key is stored in the contract, so key rotation just works. Transactions go through a scoped EVM window limited to the payroll and token contracts. The classical key alone can only withdraw a capped daily amount from the free balance; earned wages are ring-fenced. Kits and features: QoreChain SDK (accounts, PQ key registration with proof of possession, hybrid-signed transfers, EVM windows), the EVM kit, QoreSign, QoreX through its RainbowKit connector, and the fUSD test stablecoin. Also OpenZeppelin, Hardhat 3, viem, wagmi. Testing: 19 Hardhat tests including a full Q-Day attack drill. Precompiles are mocked locally; real ML-DSA-87 is verified through the live precompiles by a self-test script. Two-stage QCAI audit in progress. What was hard: keeping the signed bytes identical between the contract, the CLI and the wallet; the SDK's ESM build hit a module cycle on Node 22.14 (the CLI runs as CommonJS); faucet fUSD arrives as a bank coin and needs MsgConvertCoin before a contract can use it. Status: deployed on testnet at qor10uqd7umfhmzq6f4qlycwpgn6j9hg4rxgdsvv7s after audit stage 1 (85/100; every finding fixed or explained with a test, 22 tests). Funding, hybrid PQ-signed employer actions, claims, employee-signed payout change, lockdown and the Q-Day attack all ran live.
Pushed 1 commit to main
Pushed 1 commit to main
Pushed 1 commit to main
Pushed 1 commit to main
Pushed 1 commit to main
Pushed 5 commits to main
Pushed 1 commit to main
Newly verified on chain: EVM window (incl. scoped), Test tokens fUSD, fETH, fBTC
Pushed 9 commits to main
and 4 more commits
New project.