
Pairing SSP Wallet and SSP Key: what the two devices actually exchange
Pairing leaves each device holding the other device's extended public keys, and from those two sets of public keys both apps compute the same 2-of-2 addresses on their own.
Everything that crosses between the browser extension and the phone during pairing is public key material or something derived from it. Each step checks the one before it. In SSP Wallet v2.3.0 and SSP Key v2.3.0 a first pairing runs like this:
- SSP Wallet shows a QR code that holds its Bitcoin extended public key (xpub).
- You scan it with SSP Key and slide to approve the synchronisation request.
- SSP Key derives the shared addresses, then posts its own xpub and its results to the relay.
- SSP Wallet fetches that post, derives the same addresses itself and compares them.
- After one more approval on the phone, the same exchange runs for the other chains you selected.
- Both screens show six words, and you check that they are the same.
What the QR code carries and what comes back
The wallet derives its Bitcoin xpub from its own seed at m/48'/0'/0'/2', the BIP-48 path for native SegWit multisig (BIP48 explained walks through each level). Bitcoin is SSP's identity chain, and for it the QR holds that xpub string and nothing else. A QR shown later for another chain starts with the chain name, as in eth:xpub.... An xpub cannot sign anything, but it does reveal every address of its account, which is why seed phrase, private key, xpub: what each one can actually do treats it as read access.
SSP Key shows "SSP Wallet would like to link and synchronise Bitcoin (BTC) chain to your SSP Key." Once you slide to approve, it takes its own Bitcoin xpub and the one it just scanned. From the pair it derives the first receive address (path 0/0 under both xpubs), the WK identity and the wallet's identity address. The WK identity is the 2-of-2 address at 10/0, and it later authenticates both apps to the relay. Then SSP Key posts one record to /v1/sync containing:
keyXpub, its own xpub for the chainwalletXpub, an echo of the xpub it scannedwkIdentity,generatedAddressand the multisig script of the first address- a push notification token, so the relay can wake the phone for later approvals
- when present, SSP Key's recovery-account xpub with a signature from its identity key
For EVM chains the record also carries the public halves of 50 Schnorr nonces, which the two devices need for signing later. Chains activated after Bitcoin also include a signature by SSP Key's identity key over the chain name and both xpubs.
The wallet polls the relay for that record once a second. When it arrives, the wallet checks that the echoed walletXpub is its own. It then derives the WK identity, the first address and the script from its own xpub plus the received keyXpub, and compares each one with what SSP Key reported. Any difference stops the pairing with "Synchronization failed. Generated address does not match." The wallet also rejects a key xpub identical to its own, which is what you get when both apps were set up from the same seed.
On a first pairing the wallet preselects eight more chains: Ethereum, BNB Chain, Flux, Dogecoin, Zcash, Bitcoin Cash, Litecoin and Solana. You can change that selection. Once Bitcoin is paired, the wallet sends a single chainsyncrequest through the relay listing each chain with its wallet xpub. SSP Key shows a screen titled "Public keys only" and asks for one approval. It then derives any chain keys it has not made yet from its seed, on the phone, and posts one record per chain the same way.
The six words on both screens
Those checks have one blind spot. The relay delivers both sides of the comparison. A relay that put its own key in place of SSP Key's xpub could also write matching addresses into the same record, and the wallet's checks would pass. The verification code covers that case. Each device computes it from its own copy of the two xpubs for every chain synced in the session. The pair is sorted, joined with the chain names and hashed with SHA-256, and the first 66 bits become six words from the English BIP-39 list. One code covers the whole session, so after a default first pairing the wallet labels it "Verification code (9 chains)".
Each device hashes the keys it actually holds, so a key swapped anywhere on the path makes the two codes differ. An attacker who wanted to pass the check unnoticed would need a substitute key whose code collides with the real one, which takes roughly 2^66 attempts. The words themselves are never sent to the relay.
You can compare in two ways. Read the six words in the extension against the six on the phone, or tap "Scan wallet to verify" in SSP Key and point it at the small QR the wallet shows above its words. That QR encodes sspverify: followed by the words, and the phone compares it with its own code locally and reports a match or a mismatch.
A mismatch means the two devices do not hold the same pair of public keys for at least one chain. SSP Key flags it and tells you not to use the pairing. In the wallet, tapping "They don't match" deletes every SSP Key xpub stored during the session and shows "Verification codes did not match. This vault was not activated". On a first pairing it then logs you out, and the pairing screen comes back at the next unlock. If you close the wallet without answering, the unconfirmed keys are discarded at the next unlock as well. Don't send funds to addresses from a pairing that failed this check.
What the relay keeps, and for how long
The relay files the sync record under the wallet's identity address and overwrites it with each post. During a multi-chain sync only the latest chain's record exists at any moment, and SSP Key spaces its posts so the wallet's one-second poll catches each one. Every record is created with a 15-minute expiry, enforced by a MongoDB TTL index (expireAfterSeconds: 900), and the chainsyncrequest action gets the same 15 minutes. The push token is kept without expiry, since the phone has to be reachable for later approvals.
SSP Key signs each post as the new WK identity. Before writing, the relay checks that the wallet identity in the record belongs to the other key in that 2-of-2. While a record is still live, it also refuses to overwrite it for a different WK identity, so re-pairing the same wallet with a different phone can mean a wait of up to 15 minutes. The full account of what the relay can read during pairing and signing is in What the SSP relay can and cannot see.
Deriving addresses after pairing, and what never leaves a device
After pairing, neither device needs the other to produce an address. On UTXO chains each one derives a child key from both xpubs at the same change/index position (0 for receive, 1 for change, 10 for identity), sorts the two public keys and builds OP_2 <key> <key> OP_2 OP_CHECKMULTISIG. Bitcoin wraps that script as P2WSH, and the other UTXO chains use their configured type (P2SH, P2SH-P2WSH or P2WSH). On EVM chains the two keys are combined into one Schnorr signer, and the ERC-4337 account address is predicted from it with CREATE2. Ed25519 has no public child derivation, so on Solana each side's "xpub" field holds a list of 20 public keys instead, and the vault address is a program address derived from the two members and a threshold of 2.
Seed phrases never cross. Each app creates its own 24 words and derives its keys locally. Private keys are never posted, and SSP Key removes the private halves of its Schnorr nonces before it sends the public ones.
Whatever else you skip, compare the six words on both screens before you send anything to the new addresses.


