Skip to content
QORECHAIN
Register

Quantum Pass

Qorebit

Post-quantum hardware wallet for Qorechain

Share on X

About

Qorebit is a hardware wallet for QoreChain with one button. It runs on the Baochip-1x (Dabao board), and everything also runs in an emulator, so you can try it without the hardware. QoreChain needs two signatures on every transaction: secp256k1 and post-quantum ML-DSA-87. Qorebit makes both on the device, so the keys never leave it. The device decodes each transaction itself and shows what it will sign: amount, recipient and network. Whatever the website says, the screen is the truth. The one button answers everything: tap means no (reject), hold for about 0.7 seconds means yes (approve). It is the same for approving a transaction, entering the 8-press PIN and confirming a recovery word. A companion website has a network switch for mainnet, testnet and local devnet. It lets you register the post-quantum key, send QOR and see activity. Every approval still happens on the device. Run it with `make demo`: a local QoreChain node, the emulated device with its screen in a window, and the website.

How it's made

Architecture - crates/qorebit-signer: a no_std Rust crate that derives keys (BIP-39, BIP-32 m/44'/118'/0'/0/i, PQ seed from SHAKE256), decodes transactions, applies a signing policy and produces the hybrid signature. ML-DSA-87 uses the fips204 crate and signs deterministically, like QoreSign. - firmware/dabao-app-qorebit: a Xous app for the Baochip. It decodes the transaction, shows the approval screen, takes the one-button PIN, signs ML-DSA first, then secp256k1 (which covers the ML-DSA signature), and verifies both signatures before releasing anything. The keystore wraps the seed. The device refuses a transfer from another account, more than one message per transaction, unknown body fields, or a classical-only signature (except for key registration). - tools/qorebit_display.py: a bridge that draws the device screen and its one button in a window and exposes a local HTTP API to the website. It also proxies QoreChain's public endpoints, which allow no browser access. - companion: a Vite + React site with a mainnet / testnet / local devnet switch. - devnet: the official qorechaind release, checksum-verified, running a local one-node chain. Kits and network features - @qorechain/qoresign (TypeScript) is the ground truth: the Rust signer is tested byte for byte against its vectors, and the companion builds transactions with it. - @qorechain/pqc (TypeScript) is used for the post-quantum side in the website and test tooling. - Hybrid ML-DSA-87 transactions and PQC key registration with proof of possession (MsgRegisterPQCKeyV2). The device signs the proof classical-only. What was hard - ML-DSA-87 needs about 350 KiB of stack, and the chip has 2 MiB of SRAM. Signing runs on its own 416 KiB thread. I measured the real need after a first, flawed measurement overstated it. - One wrong byte makes the chain refuse the transaction. The signer is checked against QoreSign vectors, and `make test-emu` has a real local QoreChain node verify the device's signatures (29 checks). - The device must be trustworthy without trusting the website, so there is no API that signs a bare digest. - One button for everything, including the PIN and word recovery, with tap vs hold decided by the device at 700 ms. Status Tested in the emulator against a real local node, and on the local devnet. The board images build, but have not been run on a Dabao yet (ML-DSA memory use, the PROG button and the panel display are unverified on hardware).

Timeline

QorebitQuantum Pass

Pushed 5 commits to main

  • 12ab491 docs: add AI_USAGE.md · SoarinSkySagar
  • 47f6573 docs: agent notes and the setup skill · SoarinSkySagar
  • 574738c docs: README and walkthrough · SoarinSkySagar
  • 8ed465d Add the Makefile with emulator, board and test targets · SoarinSkySagar
  • 86191ee Add gitignore and license · SoarinSkySagar
QorebitQuantum Pass

Earned a Ship Weeks badge.

QorebitQuantum Pass

Earned a Ship Weeks badge.

QorebitQuantum Pass

Pushed 50 commits to main

  • 9fcfa79 Set up the Rust workspace and the qorebit-signer crate manifest · SoarinSkySagar
  • eaaa4ee signer: minimal protobuf reader and canonical encoder · SoarinSkySagar
  • 0d56511 signer: crate root and public re-exports · SoarinSkySagar
  • 3b9b7ad signer: BIP-39 wallet, BIP-32 paths and ML-DSA-87 seed derivation · SoarinSkySagar
  • f5e9111 signer: accounts, bech32 addresses and the two signing keys · SoarinSkySagar

and 45 more commits

QorebitQuantum Pass

Pushed 1 commit to main

  • 96c25f9 docs: add AI_USAGE.md · SoarinSkySagar
QorebitQuantum Pass

New project.

Comments and questions

  • No comments yet.