Skip to content
QORECHAIN
Register

Quantum Pass

QoreWatch

Post-quantum wallet alerts for QoreChain, in Telegram.

Share on X

About

QoreWatch is a Telegram bot that messages you within seconds when money moves on your QoreChain address, your post-quantum key changes, a spending window opens or someone gets permission to spend for you. Every alert is in plain words, names the account, and puts the fix one tap away. Website: https://qorewatch.185-7-81-139.sslip.io/ Bot: https://t.me/qorewatchbot Code (MIT): https://github.com/Investorquab/QoreWatch THE PROBLEM Every QoreChain account signs with two keys: a classical secp256k1 key and a post-quantum ML-DSA-87 key. QoreChain is built so the classical key alone isn't enough. But on Q-Day, when a quantum computer can derive classical keys, an attacker who has yours will go straight for the parts that still matter: • your post-quantum key: a rotation or migration you didn't make is the clearest sign of a takeover; • an open EVM spending window, inside which the classical key alone can spend up to its limits; • the permissions you gave away: authz grants, fee allowances, smart-account session keys, EVM delegations and unlimited token approvals. Wallets show balances, not these events, and nobody watches a block explorer all day. WHAT QOREWATCH DOES QoreWatch reads every QoreChain block (about one every 1.4 seconds) and tells you, in the chat you already have open, what just happened to your address. Alerts that only QoreChain can give: • Post-quantum key rotated or migrated: CRITICAL, "Was this you?". It always gets through, even when alerts are paused, muted or in quiet hours. • Post-quantum key and encryption (KEM) key registered. • EVM spending window opened (with what it allows and for how long), spent from, closing in 30 minutes, closed. • Permissions granted and revoked: authz, fee allowances, session keys and spending rules, EVM delegations. • Classical-only signatures, and QoreChain's own anomaly-check flags. Everything else you'd expect: • Money in and out: QOR and tokens, native and EVM, with the transaction note. • Unlimited token approvals and their removal. • Failed transactions from your account. • Swaps, pool liquidity and contract calls. • Staking: staked, unstaking started, unstaking finished, rewards, your validator jailed. • Governance: your votes, new proposals, voting ending within 2 hours, results. • Network upgrades, and pool price alerts. Fixes, not just warnings: • Revoking a permission, a fee allowance or a token approval opens a QoreWatch page where QoreX shows exactly what it will sign, then confirms on chain. • Closing a spending window, removing session keys and registering a key stay inside QoreX, which lets no website do them. For those, the page shows the three taps in the wallet and turns green when the chain confirms. Link without a key: • /link gives a one-time code. You approve one 1 uqor transaction to yourself in QoreX, signed with ML-DSA-87 (hybrid), and QoreWatch verifies that signature against your registered key before it links. The code works once, for 15 minutes, and only for the address you connected on the page, so a code copied from the network links nobody. Account check and attestation: • /check scores any address or @handle out of 100 for post-quantum readiness, with a fix for each finding and a share card. QoreWatch signs each report with its own post-quantum key, so anyone can verify a score card really came from it. • /attest records your score on QoreChain from your own account (QoreWatchAttest contract, testnet). The contract refuses any account without a registered post-quantum key — it calls QoreChain's pqcKeyStatus precompile — so only a quantum-ready account can attest. QoreWatch confirms it matches the report it issued. TRY IT 1. Open https://qorewatch.185-7-81-139.sslip.io/ and press "Start the bot", or open https://t.me/qorewatchbot and send /start. 2. Watch any address read-only: /watch qor1ukeppmkglj3d36ucej3rsntt0yx9lvhu83egha Demo 3. Check an address: /check qor1ukeppmkglj3d36ucej3rsntt0yx9lvhu83egha (or open https://qorewatch.185-7-81-139.sslip.io/check/qor1ukeppmkglj3d36ucej3rsntt0yx9lvhu83egha in a browser, no wallet needed). 4. With QoreX on testnet: /link, open the page, connect, approve the 1 uqor self-send, and get "✅ Wallet linked" within seconds. 5. Send yourself a little test QOR, or open an EVM window in QoreX, and the alert arrives with its fix button. 6. Try /settings, /quiet 23:00-07:00, /pause (critical alerts still come through), /digest now, /privacy. SECURITY AND PRIVACY • QoreWatch never holds a key and never asks for one. It can't sign, so it can't move anything. Linking and every fix are transactions you approve in QoreX. • It stores only your chat id, the addresses you watch with their labels and settings, and which alerts it sent. /forget deletes all of it, and removing the bot from a group forgets that group. • The web pages run under a strict Content Security Policy (no inline scripts), with frame-ancestors 'none', nosniff, a restrictive referrer and permissions policy, and HSTS from Caddy.

How it's made

# QoreWatch QoreWatch is a single Node.js 22 process (TypeScript, ESM) combining a grammY Telegram bot, chain watcher, scheduled jobs and Hono HTTP server. It uses SQLite (`node:sqlite`) with numbered migrations for in-place upgrades. The pnpm monorepo contains `packages/core` (chain library), `apps/bot`, `apps/web` (landing and QoreX signing pages), `apps/mcp` (read-only MCP server), `contracts` (Foundry) and `deploy` (systemd, Caddy and release scripts). ## QORECHAIN INTEGRATION - **Post-quantum security:** Checks every transaction's signature mode and warns on classical-only signatures. Linking requires a successful hybrid ML-DSA-87-signed transaction, independently verified against the signer's registered key using `@qorechain/pqc` (closes audit lead L-1). - **On-chain enforcement:** QoreWatchAttest checks QoreChain's `pqcKeyStatus` precompile (`0x…0a02`) before attestation, reverting with `NoPostQuantumKey` if no ML-DSA-87 key exists. This earns "First contract with a PQC check". - **PQC module:** Registration with proof of possession, key rotation/migration, account status (`/qorechain/pqc/v1/account`) and KEM encryption-key registration. - **Security modules:** EVM windows and live limits, delegation consent, abstract-account authenticators and spending rules, authz/feegrant grants and nested Authorization/Allowance Anys. - **Other modules:** AMM, staking, governance, upgrades, `ai_anomaly_check`, cross-VM requests and CosmWasm. - **EVM (chain 9800):** fUSD, fBTC and fETH Transfer/Approval logs, attest contract and `approve(spender, 0)` revocation. - **QoreX:** Wallet connection, hybrid-signed native sends, authz/feegrant revocation and `eth_sendTransaction` (which opens its own window). Web pages use `@qorechain/wallet-adapter`. Handle records are verified against owner secp256k1 and registry Ed25519 signatures. - **SDKs:** `@qorechain/sdk` handles decoding, address conversion and hybrid signing; `@qorechain/pqc` independently verifies ML-DSA-87 signatures; `@qorechain/wallet-adapter` handles QoreX signing; `@qorechain/qoresign` signs reports with the bot's own ML-DSA-87 key, verifiable at `/pubkey`. Contracts started from `create-qorechain-dapp`'s Foundry template. ## HOW IT WORKS - **Watcher:** Tracks CometBFT blocks, decoding transactions and EVM token logs. Reads transaction bodies because failed transactions may lack message events, resumes after outages and excludes module-account fees/refunds from money alerts. - **Detectors and jobs:** Pluggable detectors cover money, security, activity, staking, governance and tokens. Jobs handle window expiry, unbonding, daily digests, proposals, voting deadlines, upgrades, jailed validators and pool prices. - **Delivery:** Per-chat deduplication, thresholds, mutes, timezone-based quiet hours (critical alerts are never held) and Telegram rate-limit handling. - **Linking:** `/link` creates a one-time code. The web page claims it for the QoreX-connected address and requests a signed 1 uqor self-send with memo `QoreWatch link CODE`. Only the successful hybrid signer is linked, once. - **Account checks:** Evaluates PQC status, EVM windows, authz/feegrant, authenticators, token approvals and classical public-key registration, producing a score with fixes. Share cards use resvg and open-licence fonts. - **Attestation:** QoreWatchAttest stores the score, SHA3-256 canonical-report hash and one-time code, requiring PQC registration. The bot compares on-chain records with issued reports, while QoreSign signs reports for independent verification. - **MCP:** Exposes read-only `check-an-address`, `recent-activity` and `explain-a-transaction` tools to AI agents through `packages/core`. - **Web:** Static Vite pages for linking, checks, transactions, five guided fixes and attestation. They use the bot's rate-limited API because QoreChain REST lacks CORS headers, with strict CSP and URL-fragment parameters. - **Landing page:** Design-kit implementation checked at 1440, 1024, 820, 768 and 390 pixels. ## HOSTING Live on a shared Ubuntu 24.04 VPS. Runs as an unprivileged systemd service with restricted permissions and memory limits; Caddy provides HTTPS. Deployment ships committed code only, stores tokens in a root-only file, builds as an unprivileged user and automatically rolls back failed releases. Includes daily backups, 25 verification checks, shared-server Caddy integration, graceful reloads, Node 22 fallback and port/domain conflict detection. ## TESTING - **181 tests** across core, bot, web, contracts and MCP, using local Telegram/QoreChain stand-ins and real transaction fixtures. - Three security audits found ten issues, all fixed with regression tests (`docs/AUDIT.md`). - All alert families and six QoreX 0.4.3 signing pages tested on testnet. - Deployment passed 25/25 checks on fresh and shared Ubuntu 24.04 servers, including rollback, restore and upgrades.

Timeline

QoreWatchQuantum Pass

Newly verified on chain: Smart accounts and spending rules

QoreWatchQuantum Pass

Pushed 1 commit to main

  • bb38aab README: list the recent live-proof transactions by the current deployer · Investorquab
QoreWatchQuantum Pass

Pushed 4 commits to main

  • 46129c1 Sign QoreX transactions through @qorechain/wallet-adapter · Investorquab
  • 0bb58f7 Docs: note the @qorechain/wallet-adapter and pqc integrations, 176 tests · Investorquab
  • e297255 Sign /check reports with QoreSign so anyone can verify them · Investorquab
  • b197853 Docs: note QoreSign-signed reports and 181 tests · Investorquab
QoreWatchQuantum Pass

Pushed 2 commits to main

  • 0f90f2e Verify a link's ML-DSA-87 signature against the registered key (L-1) · Investorquab
  • 6835380 Docs: record L-1 closed and the new test counts · Investorquab
QoreWatchQuantum Pass

Pushed 4 commits to main

  • c2365c0 Harden ship.sh: upload bot settings to a private per-upload dir (L-2) · Investorquab
  • bb7396c verify.sh: warn when the Caddyfile has dropped QoreWatch's import line · Investorquab
  • 3e4c153 Add docs/AUDIT.md and an audit.md third pass · Investorquab
  • 1332f05 README: add a "what a judge can check in 2 minutes" box · Investorquab
QoreWatchQuantum Pass

Pushed 1 commit to main

  • 1b766bb README: make QoreX @handle verification visible (3b #3) · Investorquab
QoreWatchQuantum Pass

Newly verified on chain: Test tokens fUSD, fETH, fBTC

QoreWatchQuantum Pass

Pushed 1 commit to main

  • 6eee4f0 Redeploy QoreWatchAttest with the on-chain PQC gate · Investorquab
QoreWatchQuantum Pass

Pushed 1 commit to main

  • ec09eeb AI_USAGE: expand the Best AI-Native Build write-up · Investorquab
QoreWatchQuantum Pass

Pushed 1 commit to main

  • 6444512 Add a read-only QoreWatch MCP server (apps/mcp) · Investorquab
QoreWatchQuantum Pass

Pushed 1 commit to main

  • 444cb27 QoreWatchAttest: require a registered post-quantum key on chain · Investorquab
QoreWatchQuantum Pass

Pushed 2 commits to main

  • f424424 Governance alerts: clean summaries, local times, explorer link · Investorquab
  • 6a2e9c3 Governance alerts: one-tap mute and "only results" · Investorquab
QoreWatchQuantum Pass

Pushed 10 commits to main

  • 12be9a1 README: the new test counts, and what the second audit pass changed about linking · Investorquab
  • 69b9d41 Audit: record the second pass's summary, open leads, limits and how to re-run · Investorquab
  • 7a23ac1 Audit: document F-10, an attest code usable from another account · Investorquab
  • 82dec0b Audit: document F-9, a link code posted to a whole group · Investorquab
  • f866503 Audit: document F-8, a fee granter taken for the signer of a link · Investorquab

and 5 more commits

QoreWatchQuantum Pass

Pushed 56 commits to main

  • 2f7d588 README: map the Quantum Pass requirements to evidence and list testnet addresses · Investorquab
  • 8d47ab2 Describe QoreWatchAttest in the contracts README and what came from create-qorechain-dapp · Investorquab
  • 6d92e1c Give the landing page its canonical and share URLs, and link it from the README · Investorquab
  • cfb9fb7 Put the website link in the bot's Telegram description and about text · Investorquab
  • cabd53a Audit: shared-server deploy test and finding F-7 · Investorquab

and 51 more commits

QoreWatchQuantum Pass

Newly verified on chain: EVM window (incl. scoped), Hybrid ML-DSA-87 transactions, PQC key registration with proof of possession

QoreWatchQuantum Pass

Earned a Ship Weeks badge.

QoreWatchQuantum Pass

Earned a Ship Weeks badge.

QoreWatchQuantum Pass

Newly verified on chain: AMM pools, QoreSeal and the encryption key registry

QoreWatchQuantum Pass

Earned a Ship Weeks badge.

QoreWatchQuantum Pass

New project.

Comments and questions

  • No comments yet.