Professional · 11 One seed, every key, and what a restore cannot bring back
The key tree explained.
The key tree is how one recovery phrase becomes every key the wallet uses. The phrase is stretched into a seed, the seed grows a tree of keys at fixed addresses called paths, and each account, identity and service key sits on its own branch, so the same words on a new phone grow the same tree.
01 One secret
Every key in OnlyBits grows from one secret, the recovery phrase
Install OnlyBits on a new phone, tap Recover and type the 12 words, and the wallet comes back without anything copied from the old phone.
The new phone recomputes the savings, its key in any shared wallet, the locked coins, the spending account, the trade account and the device ID contacts know it by. Every key was computed from the 12 words in the first place, so the same words give the same keys.
This page covers how the words become a number, how the number becomes a tree of keys, which branch holds what, and which parts of a wallet were never keys and so cannot come back from the words.
What you see: the phrase screen warns "Anyone with them can take your bitcoin. If you lose them, nobody can bring the wallet back." On restore there are 12 boxes, a "My phrase has 24 words" toggle and a "Recover" button.
What it hides: every path, every derivation and every service key on this page. You type words and get accounts.
Look underneath
A new wallet draws 16 bytes from the operating system's random source (getrandom) and turns them into a 12-word BIP39 phrase. Recovery accepts 12 or 24 words. A split backup (SLIP-39, beat 02) is the other root the app knows.
Everything below derives from one root
- Savings: BIP86 account
m/86'/coin'/0' - Shared wallet key:
m/86'/coin'/1'/0/0 - Locks:
m/86'/coin'/2'/0/{minute} - iroh device identity, Lightning seeds, cloud backup key and Hyperliquid key: BIP85-style entropy under
m/83696968'/128169'/...
One exception: wallets created by an early version stored a random iroh key next to the words. Those wallets keep it, and their device ID does not come back from the words alone.
02 Words to seed
The phrase is stretched into a 512-bit seed by a fixed, slow recipe
The 12 words are a way of writing down 128 random bits. Each word is one of 2,048 on a published list, so each word stands for 11 bits, and the last few bits are a checksum that catches most typos.
The phone does not use those bits as a key directly. It feeds the words into a hash function 2,048 times in a row (a recipe called PBKDF2) and gets out 64 bytes, the seed. The repetition makes each guess slower for anyone trying phrases at random. The recipe is public and fixed, so any wallet that follows the standard, BIP39, gets the same 64 bytes from the same words.
BIP39 lets a user add an extra password to the recipe, often called a passphrase or 25th word. OnlyBits always uses an empty one. There is no field to type it in, and a phrase that was used with a passphrase in another wallet will open a different, empty wallet here.
A split backup takes a different road to the same place. Its three parts (any two restore it) rebuild a 16-byte master secret, and the app uses that secret as the seed directly, as Trezor and other SLIP-39 wallets do.
The 12 words stand for 128 random bits, plus a few checksum bits that catch most typos.
PBKDF2 hashes them 2,048 times in a row, with the salt "mnemonic" and, in OnlyBits, always an empty passphrase.
Out comes the 64-byte seed. Any BIP39 wallet gets the same bytes from the same words.
A split backup takes another road. Any two of its three parts combine into a 16-byte master secret, which the app uses as the seed directly.
Either one goes into BIP32's master key function and gives the master key m, the root of every key on this page.
What you see: "Write down 12 words. Works in most Bitcoin wallets.", or for the split backup "One part in Google, two on paper. Any two restore it."
What it hides: the PBKDF2 stretch runs once when the wallet opens and the 64-byte seed is kept in memory, so later derivations do not repeat it. There is no passphrase option anywhere in the app.
Look underneath
BIP39
16 bytes of entropy plus a 4-bit checksum (the first bits of its SHA-256) make 132 bits, cut into twelve 11-bit indexes into the English list. 24 words are 256 bits plus 8 checksum bits.
seed = PBKDF2-HMAC-SHA512(
password = NFKD(words joined by spaces),
salt = "mnemonic" || passphrase, # passphrase is always ""
rounds = 2048,
length = 64 bytes)
In the code this is mnemonic.to_seed(""), held in a Zeroizing buffer so it is wiped when dropped.
The public test vector
words: abandon abandon ... abandon about # BIP86 test phrase, never use it
seed: 5eb00bbddcf069084889a8ab9155568165f5c453ccb85e70...
SLIP-39
Single group, threshold 2, three members, 16-byte master secret, 20 words per part, empty SLIP-39 passphrase, iteration exponent 1 (a Feistel network of four PBKDF2-SHA256 rounds, 20,000 iterations in total). The master secret goes straight into BIP32's master key function. Multi-group backups, other thresholds and SLIP-39 passphrases are refused.
03 The tree
BIP32 turns the seed into a tree, and hardened branches cannot be traced back
A standard called BIP32 turns the seed into a master key, and from any key it can compute numbered children: child 0, child 1, child 2 and so on, each one a full key with children of its own. A key's place in the tree is written as a path, such as m/86'/0'/0', read as "from the master, child 86, then child 0, then child 0".
There are two ways to compute a child. A hardened child, marked with an apostrophe, needs the parent's private key. A normal child can be computed from the parent's public key alone. That second kind is what makes an xpub (extended public key) possible: give someone the public half of one key plus a small extra value called the chain code, and they can list every normal child below it, which means every address below it, without being able to spend any of them.
Hardened steps are walls. Nothing below one can be used to compute anything above it or beside it. OnlyBits puts a hardened step at the top of every branch it uses.
BIP32 turns the seed into the master key, m.
m has numbered children. These are hardened, marked with an apostrophe: computing them needs m's private key.
Below a key, normal children can be computed from its public key and chain code alone. That pair is an xpub, and it lists every normal child under it.
Nothing in that subtree leads back past the hardened step, up to m or across to the children beside it.
What you see: nothing. The app has no screen that shows an xpub or a path.
What it hides: it does hand one xpub to other people, the one for the shared-wallet account, and only to the co-signers of that wallet. Beat 11 is about what they can learn from it.
Look underneath
Master key
I = HMAC-SHA512(key = "Bitcoin seed", data = seed) k_m = I[0..32] # master private key c_m = I[32..64] # master chain code
Children
# hardened, i >= 2^31 (written i') I = HMAC-SHA512(c_par, 0x00 || k_par || ser32(i)) # normal, i < 2^31 I = HMAC-SHA512(c_par, serP(K_par) || ser32(i)) k_i = (I[0..32] + k_par) mod n, c_i = I[32..64]
The normal formula only needs the parent public key K_par, which is why an xpub (K_par plus c_par) can compute child public keys: K_i = I[0..32]·G + K_par.
The serialised xpub
78 bytes: version (xpub on mainnet, tpub on test networks), depth, the parent's fingerprint (first 4 bytes of HASH160 of its public key), the child number, the chain code and the 33-byte public key, then a Base58Check checksum.
04 The accounts
Savings, the shared wallet and locks are three accounts on the Taproot branch
Wallets agree on where in the tree to look by following a published layout. OnlyBits uses BIP86, the layout for Taproot addresses, which puts everything under m/86'/coin'/account'.
The coin number says which network the keys are for: 0 for real bitcoin, 1 for every test network. The same words on Signet and on mainnet give unrelated keys, so test coins and real coins never share an address.
The account number separates jobs. Account 0 is savings. It has two chains under it: /0/* for receive addresses, and /1/* for change that comes back from a payment. Account 1 holds a single key, /0/0, the wallet's contribution to a shared wallet. Account 2 holds one key per lock, numbered by the minute the lock opens.
What you see: tabs called Savings and Spending, a shared wallet described as "Every person approves each payment from their own phone, so all of you must agree to spend.", and locks that say "Nobody, you included, can move these coins before their date."
What it hides: that these are accounts 0, 1 and 2 of one Taproot tree, and that the network picker changes the coin number underneath every one of them.
Look underneath
m/86'/coin'/0'/0/iand/1/i: savings receive and change. Each key gets the BIP86 tweak (Q = P + hash_TapTweak(P)·G, no script tree) and becomes abc1paddress.m/86'/coin'/1'/0/0: the only key used in account 1. Each signer's key is aggregated with MuSig2, then given the same BIP86 tweak, so receive and change reuse one address.m/86'/coin'/2'/0/{unix_seconds / 60}: the lock key. The index is unhardened; a 32-bit Unix time divided by 60 stays below 231.
Coin type
Bitcoin -> coin 0 Testnet4, Signet, Regtest -> coin 1
The coin index is hardened, so the test-network tree and the mainnet tree share nothing below the purpose level.
05 Descriptors
A descriptor is the written recipe that turns an account into addresses
A path says where a key sits. It does not say what kind of address to build from it, and two wallets that agree on the key can still disagree on the address. An output descriptor is one line of text that says all of it: the address type, the key, where the key came from, and which children to use.
The savings account is two descriptors, one for receiving and one for change. The fingerprint and path in square brackets record which seed and which branch the key came from. The asterisk means "every index, in order". Any wallet that reads descriptors can take these two lines and show the same addresses OnlyBits shows, which is the honest meaning of "works in most Bitcoin wallets".
What you see: "Write down the 12 words to recover without your Google account, in this app or most Bitcoin wallets."
What it hides: the descriptors themselves. There is no export button for them, so moving to another wallet means typing the words there and choosing a Taproot (BIP86) wallet, which most modern wallets support.
Look underneath
The app builds the savings wallet in BDK from these two lines (shown here watch-only, with the BIP86 test vector; inside the app the account key is the private xprv):
tr([73c5da0a/86'/0'/0']xpub6BgBgsespWvERF3LHQu6CnqdvfEvtMcQjYrcRzx53QJjSxarj2afYWcLteoGVky7D3UKDP9QyrLprQ3VCECoY49yfdDEHGCtMMj92pReUsQ/0/*) tr([73c5da0a/86'/0'/0']xpub6BgBgsespWvERF3LHQu6CnqdvfEvtMcQjYrcRzx53QJjSxarj2afYWcLteoGVky7D3UKDP9QyrLprQ3VCECoY49yfdDEHGCtMMj92pReUsQ/1/*) # /0/0 -> bc1p5cyxnuxmeuwuvkwfem96lqzszd02n6xdcjrs20cac6yqjjwudpxqkedrcr # /1/0 -> bc1p3qkhfews2uk44qtvauqyr2ttdsw7svhkl9nkm9s9c3x4ax5h60wqwruhk7
The app's own test asserts both addresses. Descriptor checksums (the #... suffix) are left off here.
The lock descriptor
tr(NUMS, and_v(v:pk([fp/86'/coin'/2']xpub/0/{minute}), after({unix_time})))
# NUMS = 50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0
The internal key is BIP341's provably unspendable point, so the script leaf is the only way to spend.
The shared wallet
The app does not store a descriptor for it. Written in BIP390 notation it would be tr(musig(A/0/0, B/0/0)) over each signer's account-1 xpub, with signer keys sorted.
06 The scan
A restore finds coins by checking addresses in order until 20 in a row are empty
The tree has over two billion addresses on each chain, and the new phone has no record of which ones were used. It asks a server about them in order, index 0, 1, 2, and stops after it finds 20 unused addresses in a row. That number is the gap limit.
For a wallet with a dozen used receive addresses and a few change addresses this takes seconds: the scan reads through them, sees 20 blanks after the last one, and stops.
The gap limit is also why a wallet should not hand out addresses far ahead of the ones that have been paid. If 25 addresses were given out and only the 26th was paid, a scan with a gap of 20 would stop before reaching it, and the coins would look missing until someone scanned further.
The new phone asks a server about index 0, then 1, 2 and on. Here six of the first eight addresses have been used.
After the last used address it keeps asking, and counts the empty ones in a row.
At 20 empty in a row it stops. What it found up to there is the wallet.
A coin paid to an address past the stop is never checked, so it looks missing until someone scans further.
What you see: "Syncing. The first sync scans the whole wallet."
What it hides: the gap of 20, checked on both chains with 16 requests in flight. When contacts ask the phone for an address, it gives a fresh one each time until 10 sit unused, then hands out the oldest unused one again. That cap keeps every payment within reach of a restore.
Look underneath
STOP_GAP = 20 # BDK full_scan stop gap, per keychain PARALLEL_REQUESTS = 16 PEER_ADDRESS_GAP = 10 # STOP_GAP / 2
The first sync after the app opens a wallet is a full_scan against Esplora. Later syncs use an encrypted chain cache and only check addresses the wallet already knows about, plus the next ones.
The shared wallet needs no scan: it has one fixed address. Locks cannot be scanned at all; beat 10 explains why.
The scan asks the server about each address, which tells that server which addresses belong together. Servers explained covers what that leaks and how to point the app at your own.
07 The side branch
Secrets that are not Bitcoin keys come from a separate branch through a one-way hash
The wallet also needs secrets that are not Bitcoin addresses: an identity for the phone so contacts can reach it, a seed for the Lightning engine, a key to lock the cloud backup, and a key for the Hyperliquid account. Each has to come back from the 12 words too, or a restore would bring up new identities.
OnlyBits gets them from a different part of the same tree, under m/83696968'/128169', a branch no Bitcoin wallet uses for addresses. It derives a key there, then runs that key through one more hash with a fixed label. The output is a block of random-looking bytes that the app hands to the service as its secret. This recipe comes from a standard called BIP85.
The last number on each path picks the job and the network. The device identity on mainnet sits at index 0, the backup key at 1000, the Hyperliquid key at 2000, and a test network adds one to each.
Each job has its own hardened path under m/83696968'/128169', a branch no Bitcoin wallet uses for addresses. BIP32 derives a key at each one.
Each key goes through HMAC-SHA512, keyed with the fixed label "bip-entropy-from-k".
Out come random-looking bytes, cut to the length each service needs. The service gets those bytes as its secret.
Nothing runs the other way. The bytes do not lead back to the key that made them, or to the words.
What you see: on the Trade tab, "The key to your Hyperliquid account comes from your wallet, so recovering the wallet brings the account back."
What it hides: the other four. Contacts see the same device ID after a restore, and shared wallets still recognise the phone, because the identity key came back from the words too.
Look underneath
child = BIP32 derive(master, path) # all steps hardened entropy = HMAC-SHA512(key = "bip-entropy-from-k", data = child.private_key) # 64 bytes secret = entropy[0 .. num_bytes]
.../32'/{coin}': 32 bytes, the iroh Ed25519 secret key. Its public key is the device ID..../64'/{coin}': all 64 bytes, the ldk-node seed..../48'/{coin}': the first 48 bytes, the lightning-kmp (ACINQ) seed..../32'/{1000+coin}': 32 bytes, the AES-256-GCM key that seals app state in the cloud backup..../32'/{2000+coin}': 32 bytes, a secp256k1 secret key whose public key gives the Hyperliquid (EVM-style) address.
Why "BIP85-style"
The path shape and the HMAC match BIP85's HEX application (number 128169), and the app tests itself against BIP85's published HEX vector. BIP85 defines that application's output as hex text; the app uses the raw bytes. The indexes 1000+ and 2000+ are the app's own convention. A BIP85 tool loaded with the same words would print the same bytes for these paths as hex, which is worth knowing before typing the words into one.
08 Compartments
Each job gets its own secret, so a leak stays in its own compartment
The app could have used one key for everything. It would have been less code. It would also mean that any bug in any part of the app that touches a key exposes all of the money.
Instead each job holds a secret that cannot be turned back into the words or into any other job's secret. The Lightning engine is the busiest part of the app: it runs a node, talks to a provider over the internet and keeps keys loaded the whole time it runs. If a flaw in that engine leaked its seed, an attacker could take whatever is in the spending account. They could not compute the savings keys, lock keys, Hyperliquid key or device identity, because the leaked bytes are the output of a hash, and the hash cannot be run backwards.
The same holds the other way. The cloud backup key opens the contact list and nothing else. A bug that leaked it would expose who the contacts are, not the coins.
Every job gets its own secret from the seed, and none of them can be turned back into the seed or into another.
Suppose a flaw in the Lightning engine, the busiest part of the app, leaks its seed.
The attacker can take whatever is in the spending account.
They cannot climb back. The leaked bytes are the output of a hash, and the hash cannot be run backwards to the seed.
So the savings keys, shared key, lock keys, Hyperliquid key and device identity stay out of reach.
What you see: separate tabs for Savings, Spending and Trade, which line up with separate secrets underneath.
What it hides: the reason the tabs can fail independently. The app's shareable logs carry "no keys or words", which is a policy rather than a mechanism, and the compartments are the backstop if that policy ever slips.
Look underneath
Two one-way steps
Every BIP85 path is hardened from the master down, so its child private key cannot be computed from any public data. Then the HMAC with a fixed key hides even that child key: given entropy, recovering child.private_key means inverting HMAC-SHA512.
Different curves, different formats
iroh uses Ed25519, Hyperliquid uses secp256k1 with Ethereum-style addresses, the backup key is a symmetric AES key, and LDK and lightning-kmp derive their own internal key trees from their seeds. Reusing one Bitcoin key across those would also mean signing with the same scalar under different schemes, a well-known source of key leaks.
What a leak does cost
- LDK or ACINQ seed: the spending account's channel balance and the node identity.
- Backup key: the sealed app state (names, contacts, shared policy, lock dates), but only for someone who also has the encrypted blob from Google.
- Hyperliquid key: the trade account, which sits at Hyperliquid, not on the Bitcoin chain.
- iroh key: the ability to impersonate the phone to its contacts. It signs no Bitcoin.
09 Fixed paths
The paths are a promise, and changing one number makes a restore look in the wrong place
A path is only useful if the wallet that restores uses exactly the path the wallet that created it used. Nothing in the words records the path. The agreement lives in the code and in published standards.
A wallet that defaults to an older address type may look under m/84' instead of m/86'. The words are right, the keys are valid, and every address it shows is empty. The coins are still there, on addresses that wallet is not computing. The same goes for the side branch: if a future version of OnlyBits moved the device identity to a different index, a restored phone would come up with a new device ID, and contacts' phones would treat it as a stranger.
So these paths are fixed for the life of the app. They are written down in the project's own notes with the instruction that changing one breaks restores.
What you see: one Recover screen with no choice of address type or account. The app always looks where it always wrote.
What it hides: the network choice is a path choice. Restoring a mainnet phrase with the network set to Signet derives coin type 1 and shows an empty test wallet. The words are fine; the coin number is different.
Look underneath
Common purpose levels other wallets use
m/44' legacy P2PKH 1...
m/49' nested SegWit 3...
m/84' native SegWit v0 bc1q...
m/86' Taproot key path bc1p... # OnlyBits
A wallet that scans all four purposes will find OnlyBits savings. One that only scans its default may not.
Where the paths are pinned
The constants are IROH_KEY_PATH, LIGHTNING_SEED_PATH, ACINQ_SEED_PATH, BACKUP_KEY_INDEX = 1000 and TRADE_KEY_INDEX = 2000, plus the BIP86 account numbers 0, 1 and LOCK_ACCOUNT = 2. Tests restore the BIP86 test phrase twice and check that the ACINQ seed, the device ID and the addresses come out identical.
One path that already moved
Wallet data version 2 stored a random iroh key next to the words. Version 3 derives it. Version-2 wallets keep the stored key so their contacts still recognise them; restoring one from words alone gives the derived identity, which their contacts have never seen.
10 What words miss
The words rebuild keys, while names, labels and Lightning channels need something else
Anything that was computed from the seed comes back from the seed. Anything you chose, or anything that happened between your phone and someone else's, was never in the seed and has to come from somewhere else.
From the words alone, a restore brings back the savings, the trade account, the device ID and the Lightning node's identity. The spending balance comes back through the provider rather than from the phone: with ACINQ the app leaves this to ACINQ's own software, and with other providers the provider closes the channel it can no longer use and the app sweeps the wallet's share back with keys from the seed.
Locks need one more fact. Each lock key is chosen by the minute it unlocks, and five years holds about 2.6 million minutes, too many addresses to scan. The Google backup stores the unlock times. Without it, you have to remember each date to the minute.
Your name, contacts, saved address names and shared wallet details are in the Google backup if it is turned on. A shared wallet can also come back from the other signers. Some things are in no backup at all: which address paid which contact, Lightning channel state, and invitations or shared payments still waiting for approval on the old phone.
What you see: the Google restore says "Restore it with your name, contacts and shared wallet. Money in the spending account comes back through its provider, not from this backup." After a words-only restore: "Shared wallets come back from the other signers after recovery. Use Restore a shared wallet on Home.", and on the Locks screen, "Find a lock by its date".
What it hides: old payments to contacts now show as "Unknown", because the record of which address belonged to whom was kept on the old phone only.
Look underneath
The Google backup has two entries
- The wallet secret: the local data including the words, or for a split backup only the cloud part. Stored in Google Block Store with end-to-end encryption tied to the screen lock; if that encryption is unavailable, nothing is saved.
- App state: the stored-wallet JSON without the secret (name, contacts, saved-address contacts, shared policy, Esplora URL, Lightning provider, the ACINQ flag, lock unlock times), deflated, then sealed with AES-256-GCM under the BIP85 backup key:
version(1) || nonce(12) || ciphertext, with the version byte as associated data.
Because the state key comes from the seed, the state blob only opens after the wallet itself is back.
Not in any backup
- Paid-contact labels (address to device ID): kept on the phone only.
- LDK channel state: on the device only. After a restore the provider force-closes the channel it cannot re-establish, and the app looks for outputs paying LDK's static payment keys (derived from the Lightning seed) and sweeps them.
- ACINQ: the same 48-byte seed gives the same node; channel recovery is left to lightning-kmp and ACINQ.
- Invitation and spend books: saved with the wallet on the phone. Other signers' phones still hold what they owe this phone and resend it when they connect, since its device ID is unchanged. What only the old phone held is gone; invitations expire after 7 days and proposals after 24 hours anyway.
- The chain cache: rebuilt by the full scan.
Lock search space
5 years * 365 days * 24 h * 60 min = 2,628,000 possible lock keys
11 Attacks
An xpub reveals a whole account without spending it, and a derived secret cannot climb back to the words
Suppose a portfolio app asks Alice for her savings xpub "to track your balance". It cannot spend anything with it. It can compute every address she has used and every one she will use, on both the receive and change chains, so it learns her full balance, every payment in and out, and which of her coins belong together. That is the whole financial history of the account, permanently, because the xpub never changes.
It cannot see accounts 1 or 2, her Lightning node, or her trade account, because hardened steps sit between them. It also gains a lever: an xpub plus the private key of any one normal child below it is enough to compute the account's private key. A careless tool that later asks her to "sign a test message" with a single address key could turn a read-only leak into theft.
OnlyBits never shows Alice an xpub. It does send one to Bob: the xpub for her account 1, which Bob's phone needs to build the shared address. Under that account the app only ever uses one key, so Bob learns the shared key he already signs with, and nothing about her savings.
The other direction is a leaked derived secret. If the Hyperliquid key leaked, the attacker gets the trade account. Working from those 32 bytes back to the words would mean inverting HMAC-SHA512 and then a hardened BIP32 step, and neither can be done.
A portfolio app asks Alice for her savings xpub, the one for m/86'/0'/0'.
She sends it. The app now holds the account's public key and chain code.
It can compute every receive and change address below, past and future, so it sees her balance, every payment, and which coins belong together.
It cannot sign anything, and hardened steps keep accounts 1' and 2' and the side branch out of its view.
Later the app asks her to sign a test message with one address key. That key is a normal child below the xpub.
The xpub plus that one child private key give the account's private key. A read-only leak has become theft.
Someone reads the 12 words. Every compartment on this page sits below the seed, and the words are the seed. A person who photographs them, or an app that asks Alice to type them "to verify the wallet", can rebuild all of it on their own phone: savings, locks once each date passes, her side of the shared wallet, her trade account and her identity. There is no passphrase to stand in their way, because OnlyBits does not support one.
What you see: screenshots are blocked while the words are on screen, even if screenshots are allowed elsewhere in Advanced settings. The app asks for the words only to recover, and for three of them during the backup check.
What it hides: the co-signer xpub exchange. Pairing for a shared wallet sends Bob a participant record holding Alice's account-1 xpub and her master fingerprint.
Look underneath
The xpub-plus-child attack
given xpub = (K_par, c_par) and k_i for a normal child i I = HMAC-SHA512(c_par, serP(K_par) || ser32(i)) k_par = (k_i - I[0..32]) mod n
Hardened children are immune: their I depends on k_par, which the attacker does not have.
What Bob holds
The shared policy lists each signer's account_xpub for m/86'/coin'/1', their device ID and the master fingerprint. The fingerprint is 4 bytes of a hash of the master public key; it identifies the seed but reveals nothing usable. Bob could compute Alice's /0/1, /0/2 and so on under account 1, but the app never puts money there.
What a leaked derived secret is worth
- Hyperliquid key: the trade account and nothing else.
- LDK seed: spending balance; LDK's node and channel keys are derived from it.
- iroh key: Alice's device identity, so an attacker could pose as her phone to her contacts and co-signers. It cannot sign a shared payment, which needs her account-1 key.
12 The bill
One secret makes recovery simple and makes the words a single point of failure
A restore works because everything hangs from one secret. That is the whole cost of the design as well: the 12 words are the only thing that has to survive, and the only thing that has to stay hidden.
Lose the words with no Google backup and nothing on this page comes back. Savings and locked coins sit on the chain where nobody can spend them. The trade account stays at Hyperliquid with nobody able to sign for it. A shared wallet is stuck too, because every signer has to approve every payment and there is no fallback path. If someone else copies the words, they get all of it.
OnlyBits takes some of the edge off. The Google backup removes the need to write anything down, at the price of trusting Google's end-to-end encryption and the screen lock. The split backup lets you keep two of three parts in different places, so one lost or stolen sheet costs nothing. Neither changes the shape: one root, every key.
What you see: three ways to recover, "Back up to your Google account", "I keep a recovery phrase" and the split backup, and a mainnet warning that "This app has not been audited. Only use amounts you can afford to lose."
What it hides: that all three protect the same single root. Choosing between them changes where the copies live, not how many secrets there are.
Look underneath
What the design gives up
- No BIP39 passphrase, so no second factor that a stolen phrase lacks, and no decoy wallet.
- No separation between hot and cold: the Lightning engine, the Hyperliquid signer and the savings keys all derive from words that live on the same phone.
- Fixed paths forever. A mistake in the derivation scheme cannot be fixed without a migration that moves every coin.
- The shared wallet is n-of-n with no timelock fallback, so one signer's lost root freezes everyone's coins.
What did not get traded away
The words are standard BIP39 and the savings branch is standard BIP86, so on-chain savings do not depend on OnlyBits existing next year. Another wallet that reads Taproot descriptors finds them. A split backup is standard SLIP-39 and opens in Trezor. The service keys are compartmentalised, so a flaw in the busiest code on the phone costs one balance rather than all of them. A single root is a single point of failure, and it is also the reason one sheet of paper is enough to bring every key back.
One phrase, one tree, one restore
Twelve words, every key, and what they leave out
- The seed
- BIP39 stretches the 12 words with PBKDF2 into 64 bytes, with an empty passphrase; a split backup's 16-byte SLIP-39 secret is used as the seed directly.
- The tree
- BIP32 derives numbered children from the master key, and hardened steps stop anyone from working upward or sideways.
- The accounts
- BIP86 accounts 0, 1 and 2 under
m/86'/coin'hold savings, the shared-wallet key and the lock keys, with coin 0 on mainnet and 1 on test networks. - The descriptor
- One line of text names the address type, the key origin and the chain, so any compatible wallet derives the same addresses.
- The scan
- A restore checks addresses in order and stops after 20 unused ones in a row.
- The side branch
- BIP85-style HMAC derivation under
m/83696968'/128169'gives the device ID, both Lightning seeds, the backup key and the Hyperliquid key, each in its own compartment. - The gaps
- Contacts and names come back only from the Google backup; payment labels, channel state and pending agreements come back from nowhere.
- The bill
- Lose the words with no backup and everything is gone; let someone copy them and everything is theirs.
This page matches the OnlyBits Android app as of October 2026. Paths, byte lengths, indexes, the gap limit and the backup format were checked against the app's Rust source (the wallet root and derivation code, the SLIP-39 module, the backup and state modules, the chain and lock modules) and its Android screens, and the UI copy is quoted from those screens. The descriptor, xpub, seed prefix and addresses in beat 05 come from the public BIP86 test phrase; the app's own tests assert the two addresses, and the xpub was recomputed independently for this page. The scan picture and the changed index 5' in beat 09 are illustrative. ACINQ channel recovery after a restore is handled by lightning-kmp and ACINQ rather than by app code, and this page does not describe how. The parts that will age first are the side-branch indexes (1000 and 2000), the version-2 stored identity key, the list of what the Google backup holds, and the Lightning recovery behaviour. Alice and Bob are placeholder names. Read Recovery phrase explained first if the words themselves are new; Taproot explained, Shared wallets explained and Locks explained cover what each account does, and Servers explained covers who sees the restore scan.