# Android app (/docs/android) Kannuki as an Android app, installed from kannuki.xyz. The same wallet and the same passkeys as in your phone's browser. Kannuki has an Android app. It is small on purpose: it opens the wallet at kannuki.xyz full screen, inside your phone's own browser engine, so the wallet in the app **is** the wallet you see in Chrome on that phone, with the same passkey and the same second key. ## Install it [#install-it] ### Download the APK [#download-the-apk] On your Android phone, open [kannuki.xyz/docs/android](https://kannuki.xyz/docs/android) and press **Download for Android**. ### Allow the install [#allow-the-install] Open the downloaded file. Android asks once whether your browser may install apps: allow it for this install. Kannuki isn't on Google Play, so this step is how any app from outside the store is installed. ### Open Kannuki [#open-kannuki] It opens straight into the wallet, with no address bar. If you already made a wallet in Chrome on this phone, it is there. If not, **Create my wallet** takes one fingerprint. ## What it is, exactly [#what-it-is-exactly] - **A Trusted Web Activity.** Android's own way to run a website as an app. The app holds no keys and no wallet code of its own: it shows kannuki.xyz, and Android checks that the app and the site belong together ([the site's statement](https://kannuki.xyz/.well-known/assetlinks.json) names the app's signing key). - **The same keys model.** Your second key is still made on the phone and sealed behind its fingerprint or face unlock, never in your 12 words. Nothing about how Kannuki protects you changes in the app. - **Your default browser runs it.** With Chrome as the default, the app shares Chrome's wallet. With another default browser, the app uses that browser's storage instead, so a wallet made in Chrome won't be there: restore it with your 12 words and backup code. - **Updates are instant.** Because the app shows the live site, it is always the current version. ## iPhone [#iphone] There is no iPhone app in a store. In Safari, press **Share**, then **Add to Home Screen**: Kannuki gets its own icon and opens full screen. An iPhone keeps a Home Screen app's storage apart from Safari's, so make or restore your wallet from the icon you'll use. ## Honest limits [#honest-limits] - The app isn't on Google Play; you install the APK from this page. - It needs a browser on the phone that supports Trusted Web Activities (Chrome does). Without one it opens the site in a browser tab instead. - Passkeys need a screen lock and a Google account on the phone. Without them, Kannuki offers **Lock to this browser** instead, and the 12 words alone still can't move anything. # Architecture (/docs/developers/architecture) One Next.js app, keys only in the browser, and a few small server routes. | Layer | What | Where | |---|---|---| | App | Next.js 16 (App Router). On a phone: one column with bottom tabs, flows as full pages. On a laptop: a sidebar, a dashboard Home and flows in a panel on the right. Every flow has its own URL | `apps/web/src/app`, `src/features/*`, `src/components/shell/*` | | Chain | `@qorechain/sdk` 0.14: unified accounts, `EthNativeSigner` hybrid signing, message composers; REST reads with a second node as fallback | `src/lib/chain/*` | | Keys | Passkey PRF → HKDF → AES-GCM seal in IndexedDB; a non-extractable browser key when there's no PRF; one submission at a time per account (Web Locks) | `src/lib/keys/*` | | Data | TanStack Query: balances every 8 s, quotes every 10 s, protection until confirmed | `src/lib/queries.ts` | | Contracts | Foundry: `SavingsVault`, `VaultFactory`, `QorePqc` (calls `pqcVerify` / `pqcKeyStatus`) | `contracts/` | ## Server routes (none can move your money) [#server-routes-none-can-move-your-money] | Route | Job | |---|---| | `/api/starter` | Sends starter test QOR from Kannuki's own account, one queue, per-IP caps | | `/api/relay` | Broadcasts allowance payments your browser key signed; checks it's a capped QOR transfer naming this relayer; reports execution failures as refused | | `/api/pair/[channel]` | Encrypted mailbox between laptop and phone (server-sent events); ciphertext only | | `/api/command` | OpenAI GPT-6 Luna, strict structured output: one intent from a typed request | | `/api/voice/session` | A one-conversation token for the ElevenLabs agent (the key stays on the server) | | `/api/rob`, `/api/handle`, `/api/price`, `/api/fx` | Rob-me feed and comments, @handle resolution, QOR price, exchange rates | ## Signing paths [#signing-paths] - **Normal:** `EthNativeSigner` with the account from `unifiedAccountFromSeed(seed, { recoveryCode })`; the sign-bytes form (v1/v2) is resolved per network and pinned; fees are a fixed table per message type. - **Registration:** classical only, with proof of possession (`MsgRegisterPQCKeyV2`), as the first transaction. - **Phone approval:** split signing (`src/lib/chain/split-sign.ts`): the phone signs `hybridSignBytes(B0, authInfo)`, this device adds the extension and the classical signature. - **Refusals** map to the app's availability conditions (`src/lib/chain/errors.ts`), so every "can't" says why and offers the fix. # Connect an app (/docs/developers/connect) How any app finds Kannuki's extension, connects, signs in with both keys, pays, asks for QoreChain transactions (send, swap, stake, contract calls) and calls contracts from ordinary EVM code. With the [extension](/docs/extension) installed, an app can use Kannuki the way apps use any wallet: find it, connect, ask it to sign. The person answers each request in the extension's own window, which names the site. Try every call on the [live example](/connect). ## Three ways in [#three-ways-in] | Your app already speaks | Use | What you get | |---|---|---| | Nothing yet | `window.kannuki.request({ method, params })` | Everything on this page | | QoreChain's own wallet (`signAndBroadcast`) | `window.kannuki.native` | `enable`, `getKey` and `signAndBroadcast` with the same request shape; the result has `txHash` and `code` | | Ethereum wallets (viem, wagmi, ethers) | The EIP-1193 provider, found through EIP-6963 | Connect, switch network, sign in, send contract calls | ## Find it [#find-it] ```ts // The way any EVM app fills its wallet list (EIP-6963). Kannuki announces itself as rdns "xyz.kannuki". window.addEventListener('eip6963:announceProvider', (e) => { if (e.detail.info.rdns === 'xyz.kannuki') provider = e.detail.provider }) window.dispatchEvent(new Event('eip6963:requestProvider')) // Or directly. It can appear a moment after the page starts: const kannuki = window.kannuki // { isKannuki: true, version: '2', request(), native, ethereum } window.addEventListener('kannuki#initialized', () => { /* it is there now */ }) ``` Kannuki never takes over `window.ethereum`, so it doesn't fight other wallets for it. ## Requests [#requests] | Method | Asks the person? | Returns | |---|---|---| | `kannuki_connect` | Yes, once per site | `{ name, qor1, evm, pqcPublicKey, network }` | | `kannuki_accounts` | No | The same object if this site is connected, otherwise `null` | | `kannuki_signMessage` `{ message }` | Yes, every time | `{ signed, signature, pqcSignature, publicKey, pqcPublicKey }` | | `kannuki_send` `{ to, amount, memo? }` | Yes, every time | `{ status: 'included' \| 'unknown', hash }` or `{ status: 'refused', reason }` | | `kannuki_signAndBroadcast` `{ messages, memo?, gasLimit? }` | Yes, every time | `{ status: 'included', hash, height, gasUsed }`, `{ status: 'unknown', hash }`, `{ status: 'failed', hash, reason }` or `{ status: 'refused', reason }` | | `kannuki_switchNetwork` `{ network }` | Yes, unless already there | `{ network: 'testnet' \| 'mainnet' }` | | `kannuki_disconnect` | No | `true` | A declined request rejects with `{ code: 4001 }`; a request from a site that isn't connected with `{ code: 4100 }`; an unsupported method with `{ code: 4200 }`; a chain that isn't QoreChain with `{ code: 4902 }`; no wallet yet with `{ code: 4900 }`. ## Sign in with both keys [#sign-in-with-both-keys] `kannuki_signMessage` signs this exact text, returned as `signed`: ```text Kannuki signed message Site: https://example.org Sign in to example.org ``` The heading and the site's own address are part of what's signed, so a signature made for one site fails on another, and it can never be a transaction. Two signatures come back over the same bytes: - `signature`: key one, secp256k1 over `sha256(signed)`, compact hex. - `pqcSignature`: key two, ML-DSA-87 over `signed`, hex. Check both, then check that `pqcPublicKey` is the key QoreChain has registered for the account (`GET /qorechain/pqc/v1/account/{qor1}`). A phished seed phrase can produce the first signature, never the second. ```ts import { secp256k1 } from '@noble/curves/secp256k1' import { sha256 } from '@noble/hashes/sha2' import { hexToBytes, utf8ToBytes } from '@noble/hashes/utils' import { pqcVerify } from '@qorechain/sdk' const bytes = utf8ToBytes(signed.signed) const one = secp256k1.verify(hexToBytes(signed.signature), sha256(bytes), hexToBytes(signed.publicKey.slice(2))) const two = pqcVerify(hexToBytes(signed.pqcPublicKey), bytes, hexToBytes(signed.pqcSignature)) ``` Kannuki's own check is [`sign.ts`](https://github.com/Blockchain-Oracle/kannuki/blob/main/apps/web/src/lib/connect/sign.ts). ## QoreChain transactions [#qorechain-transactions] `kannuki_signAndBroadcast` takes a list of messages, each protobuf-encoded by whatever you already use (`@qorechain/sdk`, cosmjs, your own encoder). `value` may be a `Uint8Array`, an array of numbers, base64 or 0x-hex. ```ts import { msg, qorechainRegistry } from '@qorechain/sdk' const stake = msg.staking.delegate({ delegatorAddress, validatorAddress, amount: { denom: 'uqor', amount: '1000000' } }) const any = qorechainRegistry().encodeAsAny(stake) const result = await window.kannuki.request({ method: 'kannuki_signAndBroadcast', params: { messages: [{ typeUrl: any.typeUrl, value: any.value }], memo: 'Staked from example.org' }, }) ``` A site can ask for the messages whose whole effect the window can say in plain words, by exact type: | What | Message | |---|---| | Send QOR or a token | `/cosmos.bank.v1beta1.MsgSend` | | Send to another chain | `/ibc.applications.transfer.v1.MsgTransfer` (with an empty IBC memo) | | Swap | `/qorechain.amm.v1.MsgSwapExactIn`, `MsgSwapExactOut` | | Stake, unstake, move, claim | `/cosmos.staking.v1beta1.MsgDelegate`, `MsgUndelegate`, `MsgBeginRedelegate`, `/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward` | | Lock a stake, claim its bonus | `/qorechain.stakingtier.v1.MsgLockDelegation`, `MsgClaimBonus` | | Move a token to the main side | `/cosmos.evm.erc20.v1.MsgConvertERC20` (to the account itself) | | Call an EVM contract | `/qorechain.crossvm.v1.MsgCrossVMCall` (EVM target, nothing attached, not queued) | What the extension does with them: - **Decodes every message itself** with QoreChain's registry and shows each step in plain words with its full addresses, and QoreChain's own read-back of the same bytes under Details. - **Sets the fee** from Kannuki's fixed table, with the EVM's own estimate for contract calls (the whole gas limit is charged on QoreChain); `gasLimit` can raise it, never lower it. A contract call that would fail isn't sent. - **Signs with both keys** and broadcasts. Several messages go in one transaction: all of them land or none does. - **Refuses everything else before the person is asked.** That covers anything about who controls the account: registering, rotating or migrating keys, EVM delegation, opening or closing an EVM window, the daily-allowance keys, permission for someone else to act (authz, fee grants), where staking rewards go; and anything that wraps other messages (proposals, `MsgExec`). It also refuses a message written for another account, a contract call with money attached, an IBC transfer carrying forwarding instructions, and a token conversion to someone else. The rules are in [`requests.ts`](https://github.com/Blockchain-Oracle/kannuki/blob/main/apps/web/src/lib/connect/requests.ts). Code written for QoreChain's own wallet can pass Kannuki instead: ```ts await window.kannuki.native.enable('qorechain-diana') const { bech32Address } = await window.kannuki.native.getKey('qorechain-diana') const { txHash, code } = await window.kannuki.native.signAndBroadcast({ chainId: 'qorechain-diana', messages }) ``` ## For EVM apps [#for-evm-apps] Kannuki is an Ethereum provider for QoreChain (testnet `0x2648`, mainnet `0x2649`). An app built with viem, wagmi or ethers lists it as an installed wallet, connects, and sends contract calls with the code it already has. ```ts import { createPublicClient, createWalletClient, custom, erc20Abi } from 'viem' const wallet = createWalletClient({ chain: qoreTestnet, transport: custom(provider) }) const reader = createPublicClient({ chain: qoreTestnet, transport: custom(provider) }) const [address] = await wallet.requestAddresses() const hash = await wallet.writeContract({ account: address, address: fUSD, abi: erc20Abi, functionName: 'approve', args: [spender, 1_000000n], }) await reader.waitForTransactionReceipt({ hash }) ``` | Method | What Kannuki does | |---|---| | `eth_requestAccounts`, `eth_accounts` | Connect (asks once), then the account's `0x` address | | `eth_chainId`, `net_version` | The network the wallet is on | | `wallet_switchEthereumChain`, `wallet_addEthereumChain` | Switches between QoreChain's two networks (asks); any other chain gets `4902` | | `personal_sign` | Signs with key one, as EVM apps expect. The window says it is one key. It can't move anything on QoreChain's native side; a contract that accepts a key-one signature on its own is outside what the second key protects ([what it doesn't cover](/docs/security-model#what-the-second-key-does-not-cover)). A sign-in message written for another site is refused | | `eth_sendTransaction` with data, no value | A contract call (see below) | | `eth_sendTransaction` with value, no data | A QOR payment to that address, signed with both keys. Refused when the address is a contract (its code would never run), and when the request names another network or account | | `eth_call`, `eth_getBalance`, `eth_getLogs`, `eth_estimateGas`, … | Passed to QoreChain's public EVM endpoint | | `eth_getTransactionReceipt`, `eth_getTransactionByHash` | Answered by Kannuki for the calls it sent | Events: `accountsChanged`, `chainChanged`, `connect`. ### How a contract call is sent [#how-a-contract-call-is-sent] On QoreChain an EVM transaction is signed by key one alone, and an account with a registered second key can only send one while its **EVM window** is open. An open window is exactly what someone holding the 12 words could use, so Kannuki never opens one for an app. Instead it sends the same call on QoreChain's **native lane** (`MsgCrossVMCall`): a native transaction, signed by both keys, that calls the contract as the account's own `0x` address. The contract sees the same `msg.sender`; the chain checks both signatures; no window exists at any point. What follows from that: - The hash an app gets back is `0x` + the native transaction's hash. QoreChain's EVM endpoint has no receipt under it, so Kannuki answers `eth_getTransactionReceipt` itself (status, block, gas; `logs` is empty). Use a client whose transport is the provider, as above, and waiting for the receipt works. - A call that **carries QOR** (`value` and `data` together) and **publishing a contract** both need a window, so Kannuki refuses them with `4200` and says why. - An approval is answered only to the page load that asked: if the tab has moved on, the answer is dropped. - Before asking the person, Kannuki runs the EVM's own gas estimate. If the call would fail it says so and won't send it, because the fee would be charged anyway. - Contract calls are on testnet. QoreChain has `MsgCrossVMCall` switched off on mainnet today. ## Payments [#payments] `kannuki_send` asks for a QOR transfer on the network the wallet is on. The extension shows the amount, the recipient, the fee and the network, and signs it with both keys like any other Kannuki transaction. An account whose second key isn't registered yet can't be asked to pay: the window says so. ## Connected sites [#connected-sites] A site stays connected until it calls `kannuki_disconnect` or the person removes it in the extension under **Connected sites**. Either way the site's open pages get `accountsChanged` with an empty list. A site is connected to **one account**: the one that was open when the person pressed Connect. If they open another account in the wallet, the site gets `accountsChanged` with an empty list, `eth_accounts` and `kannuki_accounts` answer as if nobody is connected, and signing requests are refused with `4100`. Ask to connect again and the approval window offers the account that is open now; going back to the first account brings it back on its own. A site never learns of an account the person didn't show it, and the address it shows is always the one that signs. The approval window checks this again at the moment of signing, against what is stored then: a window left open while the site is disconnected, or connected to another account, turns into "This site isn't connected" and answers `4100`. Removing the wallet from the browser removes every connection with it. ## Where the code is [#where-the-code-is] | Piece | File | |---|---| | What the page gets (`window.kannuki`, the provider, the EIP-6963 announcement) | [`provider.content.ts`](https://github.com/Blockchain-Oracle/kannuki/blob/main/apps/extension/entrypoints/provider.content.ts) | | Routing: who is asking, what needs approval, read calls, receipts | [`background.ts`](https://github.com/Blockchain-Oracle/kannuki/blob/main/apps/extension/entrypoints/background.ts) | | The approval window | [`approve.tsx`](https://github.com/Blockchain-Oracle/kannuki/blob/main/apps/extension/src/approve.tsx) | | Reading a request: decoding, the never-list, fees, contract calls | [`requests.ts`](https://github.com/Blockchain-Oracle/kannuki/blob/main/apps/web/src/lib/connect/requests.ts) | | Shapes and error codes | [`protocol.ts`](https://github.com/Blockchain-Oracle/kannuki/blob/main/apps/web/src/lib/connect/protocol.ts) | | The live example | [`connect-demo.tsx`](https://github.com/Blockchain-Oracle/kannuki/blob/main/apps/web/src/features/connect/connect-demo.tsx) | # Contracts and audit (/docs/developers/contracts) The savings vault, its post-quantum checks, its tests and the two-stage QCAI audit. | Contract | Address (testnet) | |---|---| | `VaultFactory` | `0x4aa36338cfd4467377bAF3ABC887d08F61c56a91` | | Demo `SavingsVault` | `0xC4aEb5DE32F010ee590d3B7f7feB4123fD1066E4` | ## Where the post-quantum checks happen [#where-the-post-quantum-checks-happen] | Call site | Checks | |---|---| | `QorePqc.provenKey` → `pqcKeyStatus` (0x…0a02) | the owner's ML-DSA-87 key is registered, possession proven, algorithm ML-DSA-87; fails closed without the precompile | | `QorePqc.requireSignature` → `pqcVerify` (0x…0a01) | the owner's ML-DSA-87 signature over a message bound to chain id, contract, action, arguments, nonce and deadline | | `VaultFactory.createVault` | the caller (the vault's owner) has a proven key | | `SavingsVault.withdraw / cancel / setDailyLimit` | each needs the owner's post-quantum signature | The vault pays instantly within a daily limit; anything bigger is queued 24 hours (`WAIT = 24 hours`) and can be cancelled; raising the limit also waits 24 hours. Every state-changing function is `nonReentrant` and writes state before paying. ## Tests [#tests] `cd contracts && forge test`: 40 tests, including every signature binding (recipient, amount, chain, action, deadline, single use), fail-closed precompiles, re-entrancy, the 24-hour wait and one regression test per audit finding. CI runs them on every push. ## QCAI audit [#qcai-audit] Two stages, as the Post-Quantum dApp category asks. Stage 1 (1 Dec, `QCAIA-1796155274801-35B84098`): 85/100. Every finding, our verdict and its regression test are in [`docs/AUDIT.md`](https://github.com/Blockchain-Oracle/kannuki/blob/main/docs/AUDIT.md); the flattened sources are in `docs/audit/`. Stage 2 on the fixed contract (2 Dec) scored 85/100 too, re-raising the same five patterns; each is answered with its test in `docs/audit/stage2-2026-12-02.md`. # On-chain evidence (/docs/developers/evidence) The accounts and transactions behind every claim, on QoreChain testnet. Open any hash at `https://explore.qore.network/tx/?network=testnet`. ## Accounts [#accounts] | Account | Address | |---|---| | Kannuki deployer (starter funds, contracts) | `qor1j6k7nlt5fh3eq6l667ttdxmh0wylk7x6gt84nv` · `0x96ADe9fd744dE3906bFAd796B69b777B89Fb78da` | | Allowance relayer | `qor1elnjwmv5fpyhes9nga4ymp7w45ucftuvcmkuc4` · `0xCFE7276D9448497cc0B3476A4D87CeAD3984aF8C` | | Public rob-me wallet | `qor1w57dgyvjgmf20frvfa4653wklfhyx6lq65g926` | | Wallet-library check account | `qor1fpxejh7vmdetpzdudnzxvl4jtcfeq5mlp42xlq` | ## Transactions (1 December) [#transactions-1-december] | What | Hash | |---|---| | Key two registered as the first transaction (classical + proof of possession) | `2D704E59F6846C5B952AB6A82A247916D99EEE9D7A4CAA212E2CBD63A5061417` | | Send with both keys (`pqc_hybrid_verify: verified`) | `F6C56207C1FDA262BBFD5213079BDCFB16F4CDA5097A095038AE7DF467913FD6` | | Deployer's key two registered | `07683262DA9AB890CBB9C6ADCE75138747D71688D7915AC617A1E836A8E0F693` | | Scoped EVM window (factory only, 1 tx) | `5B40B2C200654621B66A10B8E91C2D980C553617E2222A80A7FD87914679ACBE` | | `createVault` inside that window | `0x59f1c1b024c10d62f119983966f34e599895e972231f3aa10b35f7cae2fa7089` | | Vault deposit by plain bank send to its `qor1` form | `3907498D78BB892D1AF09B19DBB7442546009A17DD90C3F7A594F0B1DE3E2F3E` | | Vault withdrawal by `MsgCrossVMCall`, checked by `pqcVerify` | `73686BE3AA5BE5AB809453C5192A593EB4C4D8C12402CD93D2F658DF48023350` | | VaultFactory deployed (`forge create`) | `0xae92f475956f7529dbe439b0ac260b2c2ac9a13d5ce3c64dad8f8d1f18729e20` | ## Every journey, 2 December [#every-journey-2-december] On 2 December every journey was run on testnet three ways: by script with the wallet's own chain library (a fresh account, `qor1r7mqq2rm9gn2ppz9etuhmwyzmfx2ghuwnj0usw`), on the wallet's own screens behind a passkey (`qor19ujnp4hwtwecra4fnty3sdjp9902mmfpmzmxht`), and by an app asking the extension (`qor1q0y6q4nvtyj8q8zs8w2kel045lnwfmuuux0lkt`). Open any hash at `https://explore.qore.network/tx/?network=testnet`. ### By script [#by-script] | What | Hash | |---|---| | Funded with 22 QOR by the deployer | `1C1DF8631F6E7591BA74B242CC4E9737CC026A033374A9DC84B41C7577D1D2AC` | | Key two registered as the account's first transaction | `C0207F2202F63F93BB8769EA296A3B9EFA9F88411975DF33478D3AC51092CE4A` | | Send 0.5 QOR with both keys | `02D0A19C8910F82C954E5A24D8B1CDF2BEAA1175988581CBC0C275B9FD423B2C` | | Pay 0.01 QOR and stake 1 QOR in one transaction (what an app asks through kannuki_signAndBroadcast) | `9015498A458BA15408E676488A8B6ED2D03EB5FF9AB432B95FDBFA5A243C6242` | | Swap 2 QOR to fUSD on the AMM | `616A9F6425D303A1DB56889F73C80B173A379CF20E20DD911B469C3DF520910C` | | Stake 10 QOR and lock it for 3 months (staking tier) in one transaction | `4AEB30785A3379009589D3F4C1FF54FE89BFBDE8D9C30F363D10E3C1BB79A161` | | EVM window scoped to the vault factory: one transaction, a fee budget and no money | `3458BD36BD03B89AAB62D177A69FF2722705E481A53F3332197933B1AFC75283` | | createVault inside that window (empty: no money rides in a window) | `0x6b3c68e7fcf63c86ed4bdfeff698c106ce8ae2c268ae6fe6863179a396b4ce5b` | | First deposit of 5 QOR, a bank send signed with both keys | `FD43F4E9673569879CB27CC3A7FA3FA06100F809C7DF7E2F9C2077B22C6FFAD9` | | Vault deposit of 1 QOR (bank send to the vault) | `979D6E95A5491FA7DD6D745D2BBC9DACBB8A4A6EEC3035967B988F4A591F19AB` | | Vault withdrawal of 1 QOR, within the daily limit, checked by pqcVerify (MsgCrossVMCall, no window) | `FA64E79DF6AFBFF51B4EB1A97F6C91334C7E9834C07E490DA44BEBBAFEBE01C7` | | Vault withdrawal of 3 QOR, above the limit: queued for 24 hours | `8415E12B22AB375EF81D68B18A11878EC8A4C5D4D719A5EE3F1F016211A1A893` | | fUSD.approve(spender, 1 fUSD) from EVM code, sent as MsgCrossVMCall (both keys, no EVM window) | `7E8C4A60653941ED007245C5470860D0AA13EB898745B91D201D3CB45EFE016D` | | Daily allowance linked: 1 QOR a payment, 3 QOR a day (abstract-account key with a spending rule) | `89C3D89B9DAD9A5B7E436A59FD9A3B78C4C8DF745C009204EDCF94227C8219F3` | The same account, attacked afterwards with its 12 words alone, was refused with `pqc` 21. ### On the wallet's own screens [#on-the-wallets-own-screens] | What | Hash | |---|---| | funded with 12.6 QOR by the deployer | `550C0BEB617674CD5A9DB67BF7B9FDEE60E1201B419C5B02C77D08DB90222265` | | Second key registered during setup, as the account’s first transaction (starter funds arrived first) | `532FB672B264F733BCE983E56ECCBCDB83576C08F79D7C8988D4C2BA240AE018` | | Send 0.1 QOR on its real screen: included | `873971C282023628482F84F6BEFCDA2395C4C7920CAF1C01BA151F97467D94DE` | | Swap 0.5 QOR to fUSD on its real screen: included | `2EEBDFC08896D666C24FC5993A4840F708E09571EA290A8FCC5F06FD5A481222` | | Stake 10 QOR locked for 3 months on its real screen: included | `20AB116551BD30B038666B9C7C639AAC922C7A2E353B521D7B986F1FF3E2649B` | | Start saving, step 1: the EVM window scoped to the vault factory (a fee budget, no money) | `58F95FE6A217DAFE30CC619AEC7F79031E8D8CC58C7971D42B2B657384420E8D` | | Start saving, step 2: createVault inside that window, empty | `4A148F2CA9446305C158658349B33C3345734BDC59BBE32642012083C67CD8CB` | | Start saving, step 3: the first deposit of 1 QOR, a bank send with both keys (all three under one approval) | `4DC7784CE50D2601DA5DDE1B5B6E01DD28D97ACC636278C41F1F9A68C7E2BDCF` | | Vault withdrawal of 0.3 QOR inside the daily limit, checked by pqcVerify (the vault went from 1 to 0.7 QOR; hash read from the chain) | `309F3287EA471F5D57F64BF2BDE7B4F63E60A6D2F342B73A170149133FD42B91` | | Daily allowance turned on (spending rule on QoreChain) | `21FF2FE138FC4DB857438F0D75B1AF043F661E8904757472F87EE89E4677A1B8` | | Pay 0.2 QOR from the daily allowance, no prompt (allowance key + relayer): included | `C01BD627F82A3B2AF672F31690D3FCA309FC58BE3C8771A0ABC81CD62D7D74D2` | | Change lock: a new second key registered on QoreChain (testnet moved, mainnet had none), the old backup code retired | `5B767725A369DCE31A78240C30046F5832CCCB25C0C652BE662C4ED3536BA5CD` | | Send 0.05 QOR after the lock change, signed with the new key two: included | `01608121229C7D81CD162EDDC5E969B78760ED6C3DA32190F77866E6C06F97EF` | ### An app asking the extension [#an-app-asking-the-extension] | What | Hash | |---|---| | funded with 1.3 QOR by the deployer | `BC2622D9C4F1AD6973806A0AB152254B812791384FB0570DFEBC814EBB2DCC0A` | | a site’s payment of 0.01 QOR: included | `11E4733FA1C5C2442B3CEF9250855C1D1F40208ED4341FB93797FBB06CA9EA57` | | a site’s two-step transaction (pay 0.01 QOR + stake 1 QOR): included | `AA9B21B07AB21C266E211142D8D96A3E65847B2A87299046E67B673CEE3E8019` | | a site’s contract call (fUSD.approve through viem) sent as MsgCrossVMCall: landed, and the token recorded it | `E7111806F1577E595123A8802B27F60B6CB5456DD5688C4DA119475216E3519A` | ### Phone approval: two devices, and a third opening the same code [#phone-approval-two-devices-and-a-third-opening-the-same-code] Run on the live site on 2 December: a laptop and a phone (each behind its own passkey) pair through the real screens while a third device opens the same pairing code. See [why the number](/docs/features/phone-approval#why-the-number-and-what-the-code-alone-cant-do). | What the run checked | Result or hash | |---|---| | Laptop: wallet made behind a passkey | `qor1ulplfagu58yll323s7jcyqx9pd4q5e3ud5lh8n` | | Laptop: second key registered on QoreChain | observed | | Laptop: backup read back and saved | observed | | The pairing code on screen carries the link | `read by decoding the QR picture` | | A second device opening the same code gets a different number | `the number comes from each device’s own key` | | …and your phone’s number is then not among the laptop’s choices | observed | | “My phone shows a different number” throws the code away; nothing was sent | observed | | The laptop offers the phone’s number among three choices | observed | | Picking another number sends nothing and throws the code away | observed | | Paired: the second key moved to the phone and locked there | observed | | The relay held the exchange and the sealed messages | `hello hello-ack reveal sealed sealed` | | With the code’s key, nothing after the exchange opens: the second key was never readable | `2 sealed message(s)` | | The key both devices keep is the exchanged one, not the code’s | observed | | The phone shows the amount, the fee and the WHOLE address it pays | observed | | A payment prepared on the laptop, read and approved on the phone: included | `FABABFCF5B161458FD0016C7FEC0E6B010C0648AC051F8773464354E24E45BF6` | | The second key moved back: the laptop checked it against the wallet before the phone forgot it | observed | | After the move back, the laptop signs with both keys again: included | `44BA050E9108B2E4C6847A75870BD3DCE0E56D3C7DF776DD8BDF005B4E38EEF1` | ### A small wallet, after the relayer learned to check signatures [#a-small-wallet-after-the-relayer-learned-to-check-signatures] The allowance relayer now verifies the allowance key's signature before it spends a fee. A real payment still goes through, and a payment for a real linked key with a made-up signature is refused with nothing broadcast (the relayer's sequence stayed at 3). | What | Hash | |---|---| | Send 0.05 QOR | `7F1D23245C1552E15D2FFAEA394A0F89D36D03659B4D14BB4EDD54827D956BF5` | | Swap 0.1 QOR to fUSD | `D3ED3C9500D8CEE82FEBEC07A844D85FB260DE5C3246A7296F8503AB484065A1` | | Daily allowance turned on | `02578A03EE7F8B95452469564610DA15AB62CCD530B21729527EAE35A319F107` | | Pay 0.1 QOR from the allowance, no prompt: signature checked by the relayer, then carried | `E60A8EC486039156C4B71023B8F68F9F1E440B7E758C6463E398F027B9F447DD` | | The same key and nonce with a made-up signature | refused by the relayer (`allowance-not-permitted`), no transaction | | Change lock: a new second key on chain | `43FB94312A8A4DF91611CA8135DADD3C9527C7D28330D0D9C0D160D1CAAE9F4B` | ### The public wallet's own life [#the-public-wallets-own-life] | What | Hash | |---|---| | Funded with 20 QOR by the deployer | `6E1A24538A0E9DFD0DC3A1CFA2CDD04457893BD933E33CA00C5D97544FC00333` | | Swap 1 QOR to fUSD | `84C7E678FC30EE47464E7C66FAD7AC2DE1B1A8463BD640D9FA82B15A5179FE27` | | Stake 10 QOR, locked for 3 months | `F673F08E8976D98D51E68DF51DE7C40D1A08A7A62C11F78EDF4C1EABE367FED6` | | EVM window scoped to the vault factory: one transaction, a fee budget and no money | `59A4F78351EDA009BE288A6C881B1194492C425BD5F12DA6B708EA70E09654A6` | | createVault (empty), 2 QOR a day | `0x7382206a36bfa65d9687200b845e830d63998688dbd7c37ea6399583d5144a6e` | | First deposit of 4 QOR, a bank send signed with both keys | `E990376D2BE9DFF62F41EBF7DD8B4CBE064734D8EA46837D2631E0D4BD31314F` | | Withdraw 1 QOR, inside the daily limit (pqcVerify) | `FD2D4D61AB2D31BA5CA758C380B62AE5D49004DB83C677F938EBB5A907D4727C` | | Withdraw 2.5 QOR, above what is left today: queued for 24 hours | `C8E2B74F9D0C06C70D4284B9064F627BA7161671BC21CF51F47755F6589A21AF` | ## The mainnet dare [#the-mainnet-dare] | What | Where | |---|---| | The dare's wallet on QoreChain mainnet (`qorechain-vladi`); its 12 words are public on [/rob-me](/rob-me) from 2 December 2026, 19:50 UTC, for 72 hours | [`qor17px9t920mjxl3nv6gyp2wln5wntlx87erqcdqw`](https://explore.qore.network/address/qor17px9t920mjxl3nv6gyp2wln5wntlx87erqcdqw?network=mainnet) | | Its second key registered (the account's first transaction, before any word was published) | [`C8928B46A9A949B3F0ADA1B19FD8BEFD3D82EB51877DCBDDCADA197756C05634`](https://explore.qore.network/tx/C8928B46A9A949B3F0ADA1B19FD8BEFD3D82EB51877DCBDDCADA197756C05634?network=mainnet) | | The chain's record of that key (hybrid, possession proven; not the key the 12 words derive) | `https://api.qore.host/qorechain/pqc/v1/account/qor17px9t920mjxl3nv6gyp2wln5wntlx87erqcdqw` | | Mainnet's signing rule | `https://api.qore.host/qorechain/pqc/v1/params`: `hybrid_signature_mode: required`, `allow_classical_fallback: false` | ## Refusals [#refusals] Refused transactions never reach a block, so they have no explorer page: that's the point. Watch them happen in **Security → Test your protection**, where each attempt shows the chain's answer (`pqc` 21, "hybrid PQC signature verification failed"). [/rob-me](/rob-me) publishes a funded wallet's 12 words and reads from the chain whether anything has ever left it. # Browser extension (/docs/extension) Kannuki in Chrome's toolbar and side panel. Install it in about a minute. The extension is the same wallet, built from the same screens as the site. It opens three ways: a popup from the toolbar, Chrome's side panel beside whatever page you're on, and a full tab. ## Install [#install] The extension isn't on the Chrome Web Store yet (store review takes days), so you load it yourself. It takes five steps. ### Download it [#download-it] Press **Download for Chrome** above (or [this link](/downloads/kannuki-extension.zip)) and unzip it. Keep the folder somewhere it can stay: Chrome runs the extension from it. ### Open the extensions page [#open-the-extensions-page] Type `chrome://extensions` in the address bar. In Brave, Edge or Arc it's `brave://extensions`, `edge://extensions` or `arc://extensions`. ### Turn on Developer mode [#turn-on-developer-mode] The switch is in the top right corner of that page. ### Load unpacked [#load-unpacked] Press **Load unpacked** and choose the unzipped `kannuki-extension` folder. ### Set up and pin [#set-up-and-pin] A setup tab opens by itself. Make a wallet with one Face ID, or restore yours with its 12 words and backup code. Then click the puzzle piece in the toolbar and the pin beside Kannuki. ## Build it yourself [#build-it-yourself] ```bash pnpm install pnpm --filter @kannuki/extension build ``` Then **Load unpacked** on `apps/extension/.output/chrome-mv3`. ## Good to know [#good-to-know] - **It keeps its own wallet.** A browser gives the site and the extension separate storage. Make a new wallet in the extension, or restore your site wallet there with its 12 words and backup code: it's the same account on chain. - **Passkeys live under kannuki.xyz**, the same home the site uses, through the extension's one host permission. - **Removing the extension deletes its wallet data.** Reloading it or clearing browsing data doesn't. Your 12 words and backup code are the way back either way. - **Scanning a QR opens a full tab**, because the camera can only ask for permission there. Talking to Ask Kannuki needs the full tab for the same reason. - **Apps can connect to it and ask it to sign.** It shows up as an installed wallet in an app's own Connect list, and apps can ask it to connect, sign in with both keys, pay, send, swap and stake in one approved transaction, call a contract from ordinary EVM code and switch network. Every request opens the extension's own window, which names the site. Chrome describes this at install as access to the sites you visit; the script reads nothing from them. Try it on the [live example](/connect); the calls are in [Connect an app](/docs/developers/connect). Sites you've connected are listed in the extension under **Connected sites**, each with a Disconnect button. - **What it talks to:** `kannuki.xyz` (price, starter funds, the allowance relay, phone pairing) and QoreChain's public endpoints. - **Its ID is fixed:** `iolbidpiiedlnbfamknagghaoclogjmk`, the same on every machine, so the wallet's storage and passkey claims don't depend on where the folder sits. # FAQ (/docs/faq) Short answers. **Is my second key "quantum-safe"?** It's ML-DSA-87 (Dilithium-5), NIST's post-quantum signature standard. What matters most today: it isn't in your 12 words, so phishing the words doesn't get it. **What if I lose my phone or laptop?** Restore with the 12 words and the backup code on paper. **Can Kannuki take my money?** No. Keys stay in your browser; the server never holds them. **Why does the vault use an EVM window?** Creating a contract needs the EVM lane. Kannuki opens a window that only the vault factory can use, for one transaction, about 90 seconds; transfers never use windows. **Why testnet for swap, the vault and the allowance?** Mainnet doesn't run those modules (or their precompiles) yet. Send, receive and stake work on mainnet. **Which browsers?** Chrome with Google Password Manager, Safari with iCloud Keychain, and phones (iOS Safari, Android Chrome) seal the key with a passkey. Elsewhere, "Lock to this browser" or your phone. # Daily allowance (/docs/features/allowance) Small payments without Face ID, inside limits the chain enforces. Turn it on in **Security → Daily allowance** with a per-payment cap and a daily limit (QOR, UTC day). Kannuki makes a new ed25519 key in this browser and links it to your account with QoreChain's abstract accounts (`x/abstractaccount`): `MsgUpdateSpendingRules` + `MsgRegisterAuthenticator`, one owner transaction under Face ID. The key can only **send QOR**, only up to those limits, for **29 days** (the chain refuses more than 30). A payment inside the allowance is a `MsgExecuteCosmos` signed by that key and broadcast by Kannuki's relayer, which pays the fee. The relayer can't change it (the chain checks the key's signature over every field and its nonce) and can't go over the limits (the chain checks the rule). If the chain takes the request but refuses the transfer, Kannuki reports it as refused, never as paid. **Spent today** is read from the chain's own records since UTC midnight. **Freeze** stops this browser using the key at once and revokes every live allowance key on chain (`MsgRevokeAuthenticator`); until that lands the page says so and offers **Freeze again**, so "off" only shows once the chain agrees. **Renew** (in the last five days) links a fresh key and revokes the old one in the same transaction, so only one key is ever live. The relayer checks the key is linked and the nonce is the next one, verifies the key's signature itself over the chain's own digest before it spends a fee (a payload nobody's key signed costs it nothing), and never relays the same signed payment twice. Testnet only: the module is switched off on mainnet. # Ask Kannuki (/docs/features/ask-kannuki) Type or say what you want; the right screen opens filled in. You still approve. **Type** (⌘K, `/`, or the header button): "pay Mama 2 fUSD", "swap 5 QOR to fUSD", "combien j'ai ?". OpenAI's GPT-6 Luna turns it into one structured intent with only what you actually said; the matching screen opens filled in. Contact names match this device's contacts (several matches → you choose). Balance answers are read from the chain, never from the model. **Talk:** an ElevenLabs voice agent (Claude Haiku 5.5 as its model) listens and speaks in English, French, Turkish or Pidgin. Its tools run in your browser and open the same screens while the call stays up: `open_send`, `open_swap`, `open_stake`, `open_receive`, `open_vault`, `go_to`, `get_balances`, `get_protection`. It refuses to hear a seed phrase. Neither can approve anything: every payment still ends in your Face ID and the chain's two-signature check. # Change lock (/docs/features/change-lock) A new second key and backup code for every account, without stranding any of them. Use it if your backup code or a device may have been seen by someone. The order makes it safe to interrupt: 1. One Face ID opens the wallet. Each account's current key two is checked against the chain first; a mismatch stops everything. 2. A new backup code is made and sealed **beside** the old one; every account is marked as still on the old code. 3. You write the new code down; the page checks its last group. 4. Each registered account sends `MsgRotatePQCKey`: the payload is signed by **both** the old and the new key over the chain's `rotationSignBytes`, inside a transaction hybrid-signed by the old key. Testnet and mainnet each keep their own record of an account's second key, so this happens on **every network where the account is registered** (one transaction each, paid in that network's QOR). 5. An account flips to the new code only when every network shows its new key; the old code is dropped when no account needs it anywhere. Until then the account signs with the new key where it has moved and the old one where it hasn't, and **Save your backup** shows both codes. An unfinished change resumes from the Security tab. Keep the old code until every account shows a tick. If one network can't be moved yet (no QOR there for the fee), the page says which, and nothing is lost: add a little QOR and continue. An account that has been used on either network can't be removed from the list, so a lock change always reaches it. Starting a change in two tabs at once isn't possible: the second tab picks up the first one's change. Your 12 words stay the same. # Earn (/docs/features/earn) Staking with validators, staking-tier locks, and the savings vault. ## Staking [#staking] Choose a validator (commission and share of stake shown), an amount, and optionally a **lock** for 3, 6 or 12 months (`x/stakingtier`, at least 10 QOR) for a bonus. The APR shown is the chain's own (`/qorechain/stakingtier/v1/apr`): on testnet the base is fees only, and the tiers add +1.5%, +3% or +5%. Delegate and lock go in one transaction. Unstaking takes 21 days (the chain's unbonding time); moving to another validator is instant. **Claim** collects every validator's rewards and the tier bonus in one transaction. ## Savings vault (testnet) [#savings-vault-testnet] A contract only you can open. Small withdrawals are instant up to a daily limit; bigger ones wait **24 hours** and can be cancelled. Every owner action (withdraw, cancel, change the limit) carries your ML-DSA-87 signature, which the vault checks on chain with QoreChain's `pqcVerify` precompile against the key `pqcKeyStatus` says is registered and proven. **Start saving** is one approval and three steps: 1. a one-time EVM window scoped to the vault factory only: one transaction, about 90 seconds, and a budget that covers the creation fee and **nothing else**; 2. `createVault` inside it, with no money attached; 3. once the chain shows your own vault with the limit you chose, the first deposit, as a bank send signed with both keys. No money ever rides in the window. An EVM transaction inside a window needs key one alone, so someone holding your 12 words could race it: the most they can do is spend that fee budget, or create your vault with another limit, and then the page says so and sends no deposit (**Limit** lowers it again at once). Every deposit is a plain bank send to the vault's `qor1` form: no window. What the second key signs for a withdrawal is built by the wallet itself from the chain, the vault, the action, the amount, a one-use counter and a deadline; it is never taken from a network node. **Pending** shows where each waiting withdrawal pays, so one you didn't ask for is visible and can be cancelled. Staked QOR under a lock can't be unstaked or moved until the lock ends; the validator's page shows the date and offers **Unlock early** (QoreChain keeps its penalty and the unpaid bonus). A validator that is jailed or leaves the active set still shows its page, so you can always unstake or move. **Limit** changes the instant daily limit with your signature: lowering applies at once, raising waits 24 hours. Withdrawals are cross-VM calls (`MsgCrossVMCall`), hybrid-signed, with no window at all. # Phone approval (/docs/features/phone-approval) Keep the second key on your phone. Your laptop prepares; your phone approves with Face ID. **Security → Phone approval → Pair a phone.** Pairing opens once your backup is saved and every account is protected (key two has to be registered from the device that holds it). 1. **Scan.** The laptop shows a code; your phone's camera opens `kannuki.xyz/approve` from it. 2. **Match the number.** Your phone shows one six-digit number. The laptop shows three and asks which one is on your phone. Tap it. If none of them is, choose **My phone shows a different number**: the code is thrown away and nothing was sent. 3. **Lock it on the phone.** The phone asks whether to keep the key (or **Not me**). The second key's backup code crosses to the phone, the phone seals it with **its own** Face ID, and only then does the laptop drop its copy. ## Why the number, and what the code alone can't do [#why-the-number-and-what-the-code-alone-cant-do] The code on the laptop's screen carries a channel id and a key in the link's `#fragment` (never sent to a server). That key is **not** what protects your second key on its way over: anyone who photographed the code would hold it. Before anything is sent, the two devices make a key exchange: - The exchange is ECDH on P-256 with a fresh key pair on each device; the session key is HKDF-SHA-256 over the shared secret, salted with the code's key. The private halves never leave their device and can't be exported. - The six digits come from the code's key and **both** public keys. A device that isn't the one in your hand gets a different number, so it can't be the one you pick. Because the phone commits before the laptop shows its key, someone holding the code can't search for a key that makes the numbers agree: one blind try in a million per attempt, and a code answers five attempts at most before it is thrown away. - From the moment you confirm, the line speaks only the session key. The second key crosses sealed with it; the code that was on screen opens nothing, and the relay only ever holds ciphertext. - Both devices keep the session key (not the code's) for every later request. Checked on the live site with a third device opening the same code: it gets a different number, the laptop's choices don't include your phone's any more, and with the code's key nothing after the exchange can be opened. The same run pairs for real, approves a payment on the phone and moves the key back; its transactions are in the [README's Proof](https://github.com/Blockchain-Oracle/kannuki#proof). ## How a transaction is signed across two devices [#how-a-transaction-is-signed-across-two-devices] QoreChain's hybrid contract makes the split clean: 1. The laptop (12 words, key one) builds the transaction body **without** the post-quantum extension (`B0`) and its `authInfo`, with the SDK's own encoder. 2. The phone decodes `B0` itself and shows what it does ("Send 5 QOR to qor1…", or an EVM window's exact scope), with the **whole** address it pays (or the validator, contract or window target) and the fee, never trusting a summary from the laptop. A request it can't read, or for an account it doesn't hold, can't be approved. On Approve, it signs `hybridSignBytes(version, chainId, B0, authInfo)` with key two and returns only the signature. 3. The laptop attaches it as the `PQCHybridSignature` extension and signs the final body classically. Verified against the chain's simulate before shipping. Vault authorisations are decoded on the phone too (amount, recipient, vault, deadline) before it signs. **Move it back to this device** reverses the pairing: the laptop first checks that what came back really is this wallet's second key for every account, seals it, and only then tells the phone to forget its copy. Changing the lock needs the second key back on the laptop first. With phone approval on, someone with your laptop and your 12 words still can't move a coin. # Send and receive (/docs/features/send-and-receive) Pay anyone on QoreChain, or on another chain over IBC; receive with a QR or a request link. ## Send [#send] Choose the token, then who and how much on one screen (contacts, your own accounts, an `@handle`, a pasted address, or a scan), then a readable review, then Face ID. The receipt links the transaction and shows QoreChain's own proof that both signatures were verified (`pqc_hybrid_verify`). - **Addresses:** `qor1…`, `0x…` (the same account's EVM form), `@handles` (resolved through QoreChain's handle registry and pinned on this device, so a handle that later points elsewhere is flagged), and `cosmos1…`/`osmo1…` and other IBC addresses (sent with `MsgTransfer`; inbound depends on a third-party relayer, which the app says). - **Fees** are fixed per message type (no simulate before signing, since simulate would ask for a second ML-DSA signature). - **Allowance:** a small QOR payment inside your [daily allowance](/docs/features/allowance) goes without Face ID. ## Receive [#receive] **Receive** lists the account's two address forms (QoreChain and QoreChain EVM: the same account), each with copy and a QR that carries QoreChain's logo. **Ask for an amount** turns the QR into a request link (`kannuki.xyz/app?sheet=send&to=…&amount=…&denom=…&net=…`): whoever scans it gets Send filled in, from Kannuki's scanner or any phone camera. The link says which network it was made for, and Send refuses to pay it on the other one, so a request made on testnet can't be paid with real QOR. A payment that arrives filled in always needs your lock, even when it would fit the daily allowance. On an account that isn't protected yet, Receive tells you to send a small amount first: the second key registers with it, and then the rest is safe to send. Amounts accept a comma or a point as the decimal mark ("1,5" is one and a half); anything ambiguous is refused rather than guessed. The amount you review is the amount that is signed, even if a price moves while you look. # Swap and scan to pay (/docs/features/swap-and-scan) QoreChain's own pools, one approval per swap, and paying a request in a token you don't hold. ## Swap (testnet) [#swap-testnet] QoreChain's native AMM (`x/amm`) has QOR pools with fUSD, fETH, fBTC and community tokens. Kannuki quotes every route (the direct pool, and two hops through QOR) with the chain's own quote endpoint and keeps the best. Two hops still go in **one transaction**, so one approval. - **Slippage** (gear): 0.5%, 1%, 2% or custom. Every hop carries a `min_out`; if the price moves further, the chain refuses the swap (`amm` 4) and nothing is spent. - **Price impact:** the chain refuses trades over 5% (`amm` 18); Kannuki shows the chain's number and blocks the review. - **EVM side:** a fest token held on the EVM side is moved over (`MsgConvertERC20`) inside the same approval. - Tokens with no pool to the other side are dimmed, with the reason. ## Scan to pay [#scan-to-pay] The scanner reads Kannuki request links, plain addresses, `@handles`, `qorechain:` URIs and EIP-681 `ethereum:0x…@9800`. It uses the browser's own BarcodeDetector, or the zxing-wasm reader served from Kannuki itself (no CDN). Paste a code or pick a photo if there's no camera. **Auto-swap:** a request in a token you don't hold (say 2 fUSD) can be paid with QOR. Kannuki buys exactly the amount asked (`MsgSwapExactOut`, capped by slippage) and sends it (`MsgSend`) in one transaction. # Try to rob me (/docs/features/try-to-rob-me) A real wallet with its 12 words published. Rob it if you can. [/rob-me](/rob-me) is a dare on QoreChain **mainnet**: a real Kannuki wallet with real QOR in it and its 12 words in plain text, for 72 hours. The page shows the time left, what the wallet holds in dollars, how many attempts got through, the words, the address (with a link to the explorer) and the private key behind **Show**. The words go up only after the server has checked with mainnet, on every request, that the wallet's second key is registered and isn't the key the words themselves derive. Until then the page says **Starting soon**. Registering a second key needs only the 12 words, so publishing them first would let anyone register their own. There is nothing to press but **Copy**: take the words to any wallet you like and try. QoreChain refuses anything they sign alone before it reaches a block (`pqc` 21: no block, no fee). "0 got through" is read from the chain: nothing has left the wallet since the dare began. If anyone moves money out, the page says so, with their transaction. The testnet public wallet, with the same lock and test QOR, stays open at [/rob-me?net=testnet](/rob-me?net=testnet). The dare began on **2 December 2026 at 19:50 UTC** and runs for 72 hours. Its wallet is [`qor17px9t920mjxl3nv6gyp2wln5wntlx87erqcdqw`](https://explore.qore.network/address/qor17px9t920mjxl3nv6gyp2wln5wntlx87erqcdqw?network=mainnet); its second key was registered on mainnet in [`C8928B46…C05634`](https://explore.qore.network/tx/C8928B46A9A949B3F0ADA1B19FD8BEFD3D82EB51877DCBDDCADA197756C05634?network=mainnet), the account's first and only transaction before the words went up. Anyone can read the same record the page checks: `https://api.qore.host/qorechain/pqc/v1/account/qor17px9t920mjxl3nv6gyp2wln5wntlx87erqcdqw` (a hybrid key with possession proven, and not the key the 12 words derive). **Test your protection** (Security tab) runs the same attacks against your own account with your own words. # Get started (/docs/get-started) Make a wallet, restore one, or just look around. ## A new wallet (testnet) [#a-new-wallet-testnet] Open [the wallet](/app). The first screen is **Make your wallet**; **Create my wallet** is one prompt from your device's own lock (Face ID, Touch ID, your fingerprint or Windows Hello). It makes the wallet, seals it, and asks Kannuki for starter test QOR. As soon as the funds land, the wallet registers your second key as the account's first transaction. Home shows **Protected** when the chain confirms it. Your 12 words and backup code are made at the same time and stay sealed. A **Save your backup** card stays on Home until you write them down (mainnet requires it): the page shows them, then hides them and asks for two of the words and the code's last group, read back from your paper. A new account is only protected once its second key is registered, and that needs a little QOR for the fee. On testnet the starter funds do it during setup. Anywhere else, send a small amount first (about 0.1 QOR); Kannuki opens the protect step when it lands, and **Receive** reminds you until Home says Protected. ## Words first [#words-first] **Show me my 12 words first** shows the 12 words and the backup code first, checks you saved them, then locks the wallet. The words stay blurred until you choose to show them; you can copy them or hide them again. ## Restore [#restore] **I have a Kannuki wallet** → type the 12 words and the backup code. The code is checked against the key QoreChain holds for your account on testnet **and** on mainnet before anything is made. Every account you used is found again: one backup code covers them all, because each account's second key is derived from the code **and** that account's address. ## No passkey on this browser? [#no-passkey-on-this-browser] Some browsers can't seal a key with a passkey (no PRF). Kannuki never stops there: choose **Use your phone** (scan a QR, make the wallet on your phone) or **Lock to this browser** (a non-extractable browser key; labelled as such, with an upgrade prompt). Even then, the 12 words alone can't move the account. ## Just looking [#just-looking] **Just looking** opens the public rob-me wallet read-only: real balance, real activity, real refusals. ## Getting test QOR [#getting-test-qor] **Add funds** lists every way in: Kannuki's own starter account, QoreChain's faucet, your address and QR for any wallet or exchange, a send from QoreX, and other chains over IBC. ## In your browser's toolbar [#in-your-browsers-toolbar] Kannuki also runs as a [browser extension](/docs/extension): the same wallet in a popup and in Chrome's side panel. # How it works (/docs/how-it-works) Two keys, one registration, and the chain's refusal. ## The two keys [#the-two-keys] | | Key one | Key two | |---|---|---| | What | Your 12 words (classical eth_secp256k1) | An ML-DSA-87 key (post-quantum) | | Made from | The 12 words | 32 random bytes on your device, **never** from the words | | Lives | Sealed on your device | Sealed behind your passkey (or on your phone) | | Backed up by | The 12 words | The **backup code** (QRC1-…), on paper | QoreChain checks **both** on every native transaction: the classical signature in `TxRaw.signatures`, and the ML-DSA-87 signature in the body's `PQCHybridSignature` extension. Kannuki signs both with the SDK's `EthNativeSigner`, using an account built by `unifiedAccountFromSeed(seed, { recoveryCode })`. ## Registration comes first [#registration-comes-first] The second key is registered with `MsgRegisterPQCKeyV2` (classical signature + proof of possession) as the account's **first** transaction, the moment funds land. Until then, someone with the words could register *their* key first; Kannuki closes that window by registering immediately, and checks the chain's record before ever registering, so it never overwrites a key that isn't yours. ## Why the words alone are refused [#why-the-words-alone-are-refused] Anyone with your 12 words can derive key one, and the key two every other QoreChain wallet derives from the words. But the chain compares the ML-DSA-87 signature with the key registered for your account, which came from your device. It doesn't match, so the chain refuses the transaction at CheckTx (`pqc` 21): no block, no fee. [Try it](/rob-me). ## Two drawers, one account [#two-drawers-one-account] A QoreChain account has two forms of the same address: `qor1…` (native) and `0x…` (EVM). Kannuki shows **one number per token**. In a token's details you see the split (main side, EVM side); Send and Swap move the EVM side over (`MsgConvertERC20`) inside the same approval when they need it. # Kannuki (/docs) The QoreChain wallet a stolen seed phrase can't empty. A post-quantum second key, locked behind your Face ID and never in your 12 words. A phished seed phrase is the most common way people lose a crypto wallet. Someone sends a fake "wallet sync" page, a support DM or a poisoned download; the victim types their 12 words; the wallet is emptied before they notice. QoreChain already asks every transaction for **two signatures**: a classical one and a post-quantum one (ML-DSA-87). But the chain's own wallet derives that second key **from the same 12 words**. Steal the words, and you have both keys. **Kannuki keeps the second key out of the words.** It is made from 32 random bytes on your device, sealed behind your passkey (Face ID, Touch ID, Windows Hello or your phone), and registered on chain as the account's very first transaction. From then on, the chain itself refuses anything signed with the 12 words alone (`pqc` code 21), so a phished phrase moves nothing. ## What you get [#what-you-get] - **A complete everyday wallet:** send, receive with a QR, swap on QoreChain's pools, scan to pay, stake with validators (and lock for a staking-tier bonus), a savings vault, activity, contacts, @handles. - **Protection you can test:** "Test your protection" attacks your own account with your own 12 words, live. - **Daily allowance:** small payments without Face ID, inside limits the chain enforces. - **Phone approval:** keep the second key on your phone; your laptop prepares, your phone approves. - **Ask Kannuki:** type or say "pay Mama 2 fUSD" in English, French, Turkish or Pidgin and the right screen opens filled in; you still approve. Built on QoreChain testnet (`qorechain-diana`), with send, receive and stake on mainnet (`qorechain-vladi`). # Two minutes for judges (/docs/judges) The shortest path through what Kannuki proves. 1. **Open [/app](/app) and make a wallet** with one Face ID (Chrome with Google Password Manager, or Safari with iCloud Keychain). Test QOR arrives on its own and the second key registers as the first transaction: the badge turns **Protected**. If Kannuki's starter account has run dry, **Add funds → QoreChain faucet** gets you test QOR in a minute, and protection follows by itself. 2. **Security → Test your protection.** Three attacks signed with only your own 12 words, the way a phisher would: send everything, change the lock, open an EVM window. Each is broadcast for real and refused by QoreChain before it reaches a block (`pqc` 21). 3. **Open [/rob-me](/rob-me): the dare.** A funded wallet with its 12 words in plain text. There is nothing to press but **Copy**: take the words to any wallet and try. The mainnet dare (real QOR) runs for 72 hours from 2 December 2026, 19:50 UTC; the testnet wallet stays open at [/rob-me?net=testnet](/rob-me?net=testnet). 4. **Send** something: the review shows both keys; the receipt links the transaction, where the explorer shows `pqc_hybrid_verify: verified`. 5. Optional: **Earn → Start saving** (a vault whose withdrawals are checked by `pqcVerify` on chain), **Security → Phone approval** (the second key moves to your phone), **Ask Kannuki** (⌘K, or talk). 6. Optional: **on an Android phone**, install [the app](/docs/android): the same wallet, full screen. 7. Optional: **the Chrome extension.** [Load it in five steps](/docs/extension), make a wallet in it, then open [/connect](/connect): the page finds Kannuki in its wallet list, connects, and asks it to sign in, pay, send a multi-step transaction and call a contract, each in the extension's own window. Everything the app shows comes from the chain. Contract addresses, transactions and audit: [On-chain evidence](/docs/developers/evidence) and [Contracts and audit](/docs/developers/contracts). # Security model (/docs/security-model) What each attacker can and can't do. | The attacker has | What happens | |---|---| | Your 12 words (phished) | Refused by the chain on every transaction (`pqc` 21). They can't change your lock either: rotation needs the old key two. | | Your 12 words and your unlocked laptop, with phone approval on | Refused: key two is on your phone, behind its own Face ID. | | Your backup code only | Nothing: key one (the 12 words) is still needed. | | Your 12 words **and** your backup code | Your wallet. Keep them apart: different places, never typed into a website. | | Your phone, locked | Nothing: key two is sealed behind its passkey. | ## What the second key does not cover [#what-the-second-key-does-not-cover] Be clear about the edges, because your money sits behind them. - **Tokens held on the EVM side.** A contract on QoreChain's EVM can accept a key-one signature on its own (an ERC-20 `permit`, or any contract that checks a signature itself). For a token like that, someone holding your 12 words can sign away what you keep at your `0x` address without any transaction from your account. QOR and tokens on the main side are not affected: every move of those needs both keys. Kannuki keeps tokens on the main side and moves EVM-side balances over when you use them (asset page → Move to main balance). - **A new account before its first deposit.** Registering the second key is an account's first transaction and needs a little QOR for its fee, and that registration is signed by key one alone. If your 12 words were already known to someone, they could register their own second key on a fresh account the moment money lands. So send a small amount first; when Home says Protected, send the rest. Kannuki opens the protect step by itself when money arrives, and Receive says this on an unprotected account. - **A wallet locked to this browser.** Without a passkey that supports sealing (PRF), the wallet opens with no prompt in this browser profile. Anyone who can use that profile can send. Kannuki says so before such a wallet switches to mainnet. Use a passkey, or phone approval, for real money. - **`personal_sign`.** EVM apps ask for a key-one signature to sign you in. It can't move anything on QoreChain, but a contract or a website that accepts such a signature would accept it. Kannuki refuses a sign-in message written for a different site than the one asking. ## What Kannuki's server can do [#what-kannukis-server-can-do] Nothing with your money. Keys never leave your browser. The server sends starter test QOR, relays allowance payments that your own browser key already signed (the chain enforces the limits), passes encrypted messages between your laptop and your phone (it can't read them: they are sealed with a key the two devices agree between themselves, [not the one in the pairing code](/docs/features/phone-approval#why-the-number-and-what-the-code-alone-cant-do)), and asks a language model (OpenAI's GPT-6 Luna) to understand a typed request: only the sentence you typed, your contacts' names and the token symbols you hold are sent, and nothing is stored on their side. ## Approvals you can read [#approvals-you-can-read] Every review shows what the transaction does in words, and the phone (with phone approval) decodes the transaction's own bytes before it signs: it never takes the laptop's word for it. ## If something goes wrong [#if-something-goes-wrong] - **Lost the device:** restore with the 12 words + backup code. - **Backup code may be exposed:** Security → **Change lock** gives every account a new key two and code. - **Lost the phone (phone approval):** restore key two from the paper backup code.