Skip to Content

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.
The laptop asks which of three six-digit numbers the phone shows; one is picked
The laptop asks which number your phone shows.
The phone shows its one six-digit number to pick on the laptop
The phone shows one number. Only that one is yours.
The phone asks: keep Account 1's second key on this phone? Lock it here, or Not me
The phone asks before it keeps anything, and can say Not me.
The phone's Approvals page with nothing waiting
Paired: requests from your laptop show up on this page.

Why the number, and what the code alone can't 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:

  1. 1Your phone

    Phone commits

    Makes a fresh key pair and sends only a hash of its public key.

  2. 2Your device

    Laptop answers

    Makes a fresh key pair for that hello and sends its public key.

  3. 3Your phone

    Phone reveals

    Sends its public key; the laptop checks it against the hash.

  4. 4Your device

    Same number, same key

    Both derive one session key, and six digits from both public keys.

Each side's key is fixed before it learns the other's, so someone sitting in the middle can't steer the number.
  • 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.

How a transaction is signed across two devices

QoreChain's hybrid contract makes the split clean:

  1. 1Your device

    Laptop prepares

    Builds the transaction body without the post-quantum part.

  2. 2Kannuki’s server

    Encrypted mailbox

    Carries ciphertext only, sealed with the key the two devices agreed.

  3. 3Your phone

    Phone shows it

    Decodes the bytes itself: “Send 5 QOR to qor1…”. You approve with Face ID.

  4. 4Your device

    Laptop finishes

    Attaches the phone’s signature, adds its own, and broadcasts.

The phone reads the transaction's own bytes before it signs. It never trusts the laptop's summary.
  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.
The phone shows a payment the laptop prepared: Send 0.01 QOR, the fee, Decline and Approve
The phone reads the transaction itself: the whole address, the fee, then your OK.
The laptop after pairing: your second key is on your phone, send a test payment, or move it back to this laptop
The laptop says where the key is, and how to bring it back.

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.

On this page