OnlyBits

Advanced · 07 Three phones, three keys, one signature

Shared wallets explained.

A shared wallet is bitcoin that only moves when every owner agrees. In OnlyBits each person's phone holds one key, MuSig2 combines the two or three keys into a single key on the blockchain, and a payment goes out only after every phone has checked it against its own server and signed its part.

01 Shared funds

A shared wallet holds coins that no single owner can spend

In the example on this page, Alice, Bob and Carol each pay 150,000 sats into one shared wallet, then pay 300,000 sats out of it to a recipient.

Money kept by one person is only as safe as that person's phone and that person's honesty. A shared wallet removes that dependency. The coins are locked so that a payment needs a signature from several keys, and each key lives on a different phone. Nobody holds enough on their own to move the money.

Alice 150,000 sats Bob 150,000 sats Carol 150,000 sats shared wallet 450,000 sats three keys, one lock payment 300,000 recipient signed by all three
The wallet is one pot, not three balances. Once the coins are in, none of them belongs to any one person, and the only way out is a payment all three keys sign.
In OnlyBits

What you see: a screen headed "Share a wallet" that says "Pick one or two people. Every person approves each payment from their own phone, so all of you must agree to spend."

What it hides: the keys, the way they are combined, the address they produce and the protocol the phones run to sign. You pick people and approve payments.

Look underneath

A wallet that needs several signatures is usually called multisig. Bitcoin has had three ways to build one:

  • OP_CHECKMULTISIG in a legacy or SegWit v0 script. Every public key sits in the script and is revealed on-chain when the coins are spent, so everyone can see it was a k-of-n wallet.
  • OP_CHECKSIGADD in a Taproot script leaf (BIP342). Cheaper and more flexible, but spending through a leaf still reveals the leaf and its keys.
  • Key aggregation with MuSig2 (BIP327). The signers combine their keys into one public key and produce one Schnorr signature together. On-chain the spend is a plain Taproot key-path spend, indistinguishable from one person paying.

OnlyBits uses only the third. The shared wallet has no script path at all, which is why it can only express "every key signs". Taproot explained covers key paths and script paths.

02 Every key

OnlyBits only makes wallets where every person signs: 2-of-2 or 3-of-3

A multisig rule is written k-of-n: n keys exist, and any k of them together can spend. A 2-of-3 wallet has three keys and needs any two signatures.

2-of-3 is popular because it forgives a lost key. If Carol loses hers, Alice and Bob can still move the money. OnlyBits does not offer it. Its shared wallets are always n-of-n: two people and two signatures, or three people and three signatures. With three people that means 3-of-3, so no payment leaves unless Alice, Bob and Carol all approve it.

The choice follows from the signing method. MuSig2 turns n keys into one key that needs all n to sign. A threshold below n needs a different protocol or a script path, and the app has neither. The cost of that choice is the subject of the last section.

2-of-3: any two keys not offered in OnlyBits A B C Carol loses her key: A and B can still spend 3-of-3: every key what OnlyBits builds A B C all three must sign: lose any key and nothing moves
The two rules trade in opposite directions. 2-of-3 protects against a lost key and gives up some protection against two people agreeing to cheat. 3-of-3 gives every person a veto and gives up all tolerance for loss.
In OnlyBits

What you see: after picking Bob, an "Add a third person" button, then a card reading "3 of 3 wallet". On Home the wallet says "3 people. 3 approvals."

What it hides: there is no threshold setting. The number of approvals is always the number of people, and the most people a wallet can have is three.

Look underneath

The policy parser refuses anything outside 2..=3 signers, and creating a wallet accepts one or two peers besides this phone. There is no field for a threshold because the threshold is always the signer count.

What a threshold would need

  • Script leaves. A Taproot output can carry a tapscript multi_a(2, A, B, C) leaf, or one leaf per pair of signers with a MuSig2 key in each. Spends through a leaf reveal that branch on-chain.
  • Threshold Schnorr. FROST lets any k of n produce one ordinary signature, at the cost of a key-generation ceremony and a more delicate protocol.

Neither is in the app. Neither is a timelocked recovery leaf, which is the other common way to soften an n-of-n wallet.

03 Pairing

Pairing swaps device codes and a fingerprint read aloud, never keys

Before phones can share a wallet, they have to be able to find each other. Each phone has a device identity: a public key that names the phone on the network, separate from its bitcoin keys.

A contact code is that identity plus a name. Alice shows hers as a QR code, or holds her phone against Bob's so it passes over NFC. The code holds no bitcoin address and no key that can spend. It only tells Bob's phone how to reach Alice's.

A code can be swapped: someone could put their own QR in front of Bob. So the app shows a short fingerprint of the identity on both phones. Alice reads hers aloud, Bob checks it matches what his screen shows for her, and then he knows the phone he saved is the one in her hand.

Step 1

Alice's phone shows her contact code as a QR. Her screen also shows the fingerprint of her device identity, 4f1c 9a20.

Step 2

Bob scans the QR, or Alice holds her phone against his for NFC. The code carries a device ID, the network and a name. No keys, no address.

Step 3

Bob's phone saves the contact as Alice and shows the fingerprint of the device ID it received.

Step 4

Alice reads hers aloud and Bob compares it with his screen. If they match, the phone he saved is the one in her hand.

Alice 4f1c 9a20 Bob device ID, network and a name no keys, no address code saved: Alice 4f1c 9a20 read aloud SAME DIGITS ON BOTH SCREENS: THE SAVED PHONE IS HERS
The code is safe to show in public because it carries nothing that spends. What it can do is impersonate, and the spoken fingerprint is the part of pairing that catches that.
In OnlyBits

What you see: after scanning, "They call themselves Alice. Rename them if you like. Fingerprint 4f1c 9a20: ask them to read theirs aloud to be sure." Your own name comes with "People you add see this name and save you under it. It stays on their phones, never on a server."

What it hides: the device ID itself, a 64-character key, and how the two phones reach each other across networks.

Look underneath

A contact code looks like this (the ID is shortened here):

btcms:4f1c9a20e1...b7?net=bitcoin&name=Alice

The device ID is an iroh endpoint ID: an Ed25519 public key. iroh connections are authenticated with that key, so a phone that answers on an ID holds its private half. OnlyBits derives the device key from the recovery seed with a BIP85-style path, m/83696968'/128169'/32'/{coin}', which is why a restored phone keeps its old ID. iroh reaches the other phone directly when it can and through a relay when it cannot.

The name is percent-encoded and cleaned on arrival: one line, trimmed, at most 40 characters. Saving someone also sends them a Hello note so their phone adds you back.

How strong the fingerprint is

The fingerprint is the first eight hex digits of the device ID, split in two. That is 32 bits. It reliably catches a wrong or swapped code from a careless or casual attacker. Someone who can put their own code in front of Bob and has time to generate about four billion keys could find one with the same eight digits, so the strongest pairing is still the one done face to face, by NFC or a QR on the other person's own screen.

04 Invitations

An invitation waits on every phone for up to seven days until everyone has answered

Alice opens Share a wallet, picks Bob and Carol from her contacts and sends an invitation. Bob and Carol do not need to be online.

The invitation is saved on Alice's phone and handed over the next time each phone and hers are online at the same time. When Bob accepts, his phone sends back the public key it will use for the shared wallet. A public key lets others check signatures and build an address; it cannot spend anything.

Carol accepts two days later. With every answer in, Alice's phone writes the wallet's description, called the policy: which network, and each person's public key and device ID. It sends the policy to Bob and Carol, who each keep it, and the wallet exists on all three phones. An invitation nobody answers ends seven days after it arrived.

Step 1

Each phone is a column, and time runs down the page. Alice picks Bob and Carol from her contacts.

Step 2

Her phone sends each of them an invitation. Bob's arrives now. Carol's is kept on Alice's phone until both are online at the same time.

Step 3

Bob accepts. His phone sends back the public key it will use for the shared wallet. It can check signatures and build an address, but it cannot spend.

Step 4

Carol accepts two days later and sends her public key too. Every answer is in.

Step 5

Alice's phone writes the policy (the network, each public key and each device ID) and sends it to Bob and Carol.

Step 6

Each keeps the policy and replies that it has joined. The wallet now exists on all three phones.

Alice Bob Carol invite invite, kept until delivered accepted + key 2 days later: accepted + key the policy network, keys, IDs joined joined
Every arrow is a note that the sender keeps until the other side confirms it arrived. Nothing here needs all three phones online at once, which is why the setup can take days.
In OnlyBits

What you see: a "Send invitation" button, then "They get it the next time their app and yours are open at the same time. You can close the app."

What it hides: the policy, the public keys, and a small book on each phone of what it still owes each contact and resends whenever they connect.

Look underneath

The notes, as JSON over an iroh connection on the contact protocol:

  • Invite { name, signers, invite_id }
  • Accepted { participant, invite_id }, where participant is the network, the device ID, the fingerprint and an account xpub at m/86'/coin'/1'. Sent until the inviter answers.
  • Declined, Withdrawn
  • Created { policy, invite_id }, sent until the invitee says Joined.

The policy is canonical JSON: {"version":2,"network":...,"signers":[{"account_xpub":...,"endpoint_id":...}, ...]}, with signers sorted by xpub. A phone refuses a policy that is not in that exact form, names the wrong network, does not include its own xpub, repeats a device, or has fewer than two or more than three signers. Two signers with the same xpub are refused outright.

A received invitation waits 7 days from when it arrived, for an answer or, after accepting, for the wallet. A phone keeps at most 10 received invitations. Accepting fails while another invitation could still make a shared wallet, because a phone holds one.

05 One key

MuSig2 combines the three public keys into one, weighting each so nobody can cancel the others

The policy holds three public keys. They have to become one lock, and MuSig2 does that by adding them together into a single aggregate key. The private key that matches it is never assembled anywhere: each phone keeps only its own part.

Plain addition would be a disaster. Public keys can be added and subtracted, so if the wallet were just Alice's key plus Bob's plus Carol's, Bob could wait to see the other two and then announce a fake key: his real key minus Alice's minus Carol's. The sum would come out as his real key alone, and he could spend the fund by himself. This is called a rogue-key attack.

MuSig2 multiplies each key by a weight computed from a hash of the whole list of keys before adding them. Bob cannot choose a key that cancels the others, because changing his key changes every weight, including the ones on Alice's and Carol's keys.

Step 1

The policy holds three public keys: Alice's A and Carol's C, with Bob's still to come. They have to become one lock.

Step 2

With plain addition, Bob could wait to see A and C, then announce B - A - C instead of his real key B.

Step 3

The sum comes out as B, his real key alone. Bob could spend the whole fund by himself.

Step 4

MuSig2 first hashes the whole list of keys into L, then gives each key a weight hashed from L and that key.

Step 5

The aggregate is the weighted sum. Changing Bob's key changes L, which changes the weights on A and C, so he cannot aim the sum.

Step 6

The aggregate is tweaked for Taproot with no script path, and becomes the wallet's one address. Each phone computes it on its own from the policy.

PLAIN ADDITION A + C + B - A - C = B Bob signs alone MUSIG2 (BIP327): WEIGHT, THEN ADD L = hash(A, B, C) a = H(L,A) b = H(L,B) c = H(L,C) P = a·A + b·B + c·C B CHANGES L, L CHANGES a AND c TWEAKED FOR TAPROOT, NO SCRIPT PATH one address: bc1p...q7k2
Bob's change to his own key moves L, which moves a and c, which moves the sum somewhere he did not aim. The weights make the aggregate a function of all three keys together, not a sum anyone can steer.
In OnlyBits

What you see: nothing about keys. Once everyone has joined, the shared wallet appears on Home with a balance and an address.

What it hides: the derivation of each person's key, the aggregation, and the Taproot tweak that turns the aggregate into an address. All three phones compute the same address on their own from the same policy.

Look underneath

Each signer's key is its account xpub derived one step further, xpub(m/86'/coin'/1')/0/0. The signers are sorted by xpub, and BIP327 KeyAgg runs over the list:

L     = hash_KeyAgg list(X1 || X2 || X3)
a_i   = hash_KeyAgg coefficient(L || X_i)   (the second distinct key gets 1)
Q     = a_1*X1 + a_2*X2 + a_3*X3
BIP86-style tweak, no script tree:
t     = hash_TapTweak(x(Q))
P     = Q + t*G                              the output key, bc1p...

In the code this is KeyAggContext::new(keys).with_unspendable_taproot_tweak(). The tweak commits to an empty script tree, so the output has only a key path and every spend needs a signature for P, which means all three signers.

The coefficient is the rogue-key fix. Older multisig schemes asked each signer for a proof that they know their private key; MuSig2 makes that unnecessary. Each phone also checks that the aggregate it computed gives the same address as a plain tr(<internal key>) watch-only wallet, and that its own key and its own device ID sit together in the policy.

06 One address

The shared wallet has one fixed address, and every payment in and out reuses it

One aggregate key gives one address, and OnlyBits uses it for everything. The three payments of 150,000 sats go to it, and when the 300,000 sat payment goes out, the change comes back to the same address.

That has a privacy cost. Bitcoin's history is public, and anyone who learns an address can look up every payment to and from it. A savings wallet gives out a fresh address for each payment so one payer cannot see the rest. The shared wallet does not. Once the recipient is paid, they can look up where the payment came from and see the whole wallet: three payments in, their 300,000 out, and what is left.

In return the wallet stays simple. All three phones agree on one address without any coordination, and there is nothing to scan for.

Alice 150,000 Bob 150,000 Carol 150,000 one address bc1p...q7k2 300,000 recipient bc1q... change 148,655 back to the same address the recipient sees: 3 payments in, 450,000 300,000 out to them 148,655 still in the wallet
Change normally goes to a new address so an outsider cannot tell which output was the payment. Here the change visibly returns to the address that paid, so the payment and the remaining balance are both obvious to anyone looking.
In OnlyBits

What you see: the shared wallet's receive screen shows the same address every time you open it.

What it hides: nothing, in this case. A single address is a decision the app made for simplicity, and the cost is that every payer and every recipient can see the fund's balance and history.

Look underneath

Each phone watches the shared address with a single-descriptor BDK wallet, tr(<aggregate internal key>). There is no change keychain. When a proposal is checked, an output whose script equals the shared address is counted as change and every other output as a payment.

How fresh addresses could work

Every policy holds xpubs, so each phone could derive a new child key from each xpub per index and aggregate those, producing a new address per payment. BIP328 describes deriving from a MuSig2 aggregate as if it were an xpub. Either needs every phone to agree on which indices are in use, and the app does neither. Fresh addresses for the shared wallet are not supported.

The upside the single address keeps: on-chain the output is a plain Taproot output, and the key-path spend reveals nothing about there being three people behind it.

07 The proposal

Alice proposes a payment, and the proposal waits up to a day for Bob and Carol

Alice enters the recipient's address and 300,000 sats in the shared wallet and asks the others to approve. Her phone builds the complete payment, unsigned, and saves it. That saved, unsigned payment is a proposal.

Her phone sends the proposal to Bob and Carol as a note, the same way as the invitation, and tries again every five minutes until it arrives. To reach a phone whose app is closed, it asks the app's relay to send a push notification. The push is empty: it carries no amount and no address, only the fact that someone wants to talk. Bob's app wakes up, connects to Alice's phone itself and fetches the proposal.

Bob approves forty minutes later. Carol approves three hours later. Neither has to be online at the same time as the other. A proposal that has not been approved by everyone within 24 hours expires and nothing is paid.

Alice proposes 0:00 resent every 5 min empty push Bob approves 0:40 Carol approves 3:00 sign now would expire 24:00 not to scale
Approval and signing are separate steps. Approvals can be scattered across a day; the signing itself, covered two sections down, happens in one short burst once the last approval is in.
In OnlyBits

What you see: Alice taps "Ask Bob and Carol to approve", then sees "You can leave this screen. The payment stays on Home until everyone has signed." Bob gets a notification, "Alice asks you to sign a payment", and a card that says "Needs your approval" with "Approve". While Carol has not answered, Alice's Home says "Waiting for Carol to approve".

What it hides: the resend loop, the push relay, and the fact that the proposal is a complete transaction. If time runs out, the payment shows "Not every signer approved it within a day."

Look underneath

A proposal is JSON: {"version":2,"policy":"...","unsigned_tx":"<hex>"}. It names the exact policy it belongs to, and a phone ignores one made for any other. It travels as Spend { proposal }; the answer comes back as SpendAnswer { txid, approved }. Both are resent every 5 minutes until delivered.

A proposal waits 24 hours, counted from when it was made or received. Each phone keeps at most 20 spends. The coins an open proposal spends are held back from new proposals, so two payments from the same fund cannot replace each other.

The push

Each phone registers its Firebase token with the relay over iroh, and the iroh handshake proves it holds its device key. The relay keeps one token per device ID. To wake Bob, Alice's phone asks the relay, and the relay sends Bob's phone an empty, data-only push that lives at most 10 minutes. Bob's phone can name the devices allowed to wake it (its contacts and co-signers); anyone else shares a small budget of wakes. The relay sees who woke whom and when. It never sees the proposal, which goes phone to phone.

08 The checks

Each phone checks the payment against its own server, so one lying server cannot fool all three

Approving is not done on trust. Before Bob's phone shows him the payment, and again right before it signs, it works out what the payment does from the transaction itself and checks the coins with its own server: the computer the wallet asks about the state of the blockchain.

It confirms that every coin being spent belongs to the shared wallet and has not already been spent. It confirms that the payment pays exactly one destination, with at most one output of change going back to the shared address. It refuses an absurd fee, and it refuses anything that could only be mined at some later time.

Now suppose the server Alice's phone uses has been compromised and lies to it, reporting a coin as unspent that was in fact already spent. Her phone builds a proposal on that lie. Bob's phone asks a different server, his own, which reports the coin as spent, and Bob's phone refuses to sign. The attacker would have to compromise every signer's server at once.

Step 1

Each phone asks its own server about the blockchain. Here Alice's server has been compromised, Bob runs his own node, and Carol's server is honest.

Step 2

Alice's server lies: it reports coin 7f3a:0 as unspent, though it was already spent. Her phone builds a proposal that spends it.

Step 3

The proposal reaches Bob and Carol. Neither phone takes Alice's word for the coins.

Step 4

Each checks every input with its own server. Both servers report 7f3a:0 as already spent.

Step 5

Bob's and Carol's phones refuse to sign. To get a payment like this through, an attacker would have to compromise every signer's server at once.

Alice Bob Carol Alice's server compromised Bob's own node honest Carol's server honest "unspent" 7f3a:0 proposal "spent" "spent" refuses refuses ONE LYING SERVER IS NOT ENOUGH
The defence is that the three servers are different. If all three phones were left on the same public default, one compromised server would reach all of them, which is why running or choosing your own server matters more in a shared wallet than anywhere else.
In OnlyBits

What you see: the approval card shows the amount, the destination address and the network fee, worked out by your phone from the transaction. A proposal that fails a check never reaches the "Approve" button.

What it hides: the list of checks below, and which server answered. Each person picks their server in Settings under Advanced.

Look underneath

Every check a signer runs before it draws nonces, in order:

  • Transaction version 2, between 1 and 100 inputs, no witness or scriptSig already filled in, no input listed twice.
  • Locktimes: no input may use a relative lock (BIP68 sequence). The absolute nLockTime must be a block height no more than 2 above this signer's tip. A height up to 144 blocks further is treated as this signer's server lagging and is retried later; anything else, including a time-based locktime, is refused.
  • No input may be held by another open proposal.
  • For each input, the signer fetches the previous output from its own server. Its script must be the shared address, or the input is foreign. If the server knows a transaction that already spends it, other than this one, it is already spent.
  • Outputs: exactly one output to an address that is not the shared address (the payment), and at most one back to it (change).
  • Fee: inputs minus outputs, over the size including the key-path witnesses, may not exceed 1,000 sat/vB. A rate above 20 sat/vB and above twice the server's fast estimate is marked as a high fee in the review.

Lies the signature catches by itself

A Taproot signature (BIP341) commits to the amount and script of every input being spent. If a server lied about an input's amount to make a large fee look small, the signature would be made over the wrong amounts and the network would reject the transaction. Lies about whether a coin exists or is unspent are the ones the server check is for.

A non-default server URL is asked alone, never mixed with public ones. Servers explained covers what a server can and cannot lie about.

09 Signing

When all three have approved, the phones sign together in two quick rounds

Approvals can be scattered across a day. The signature cannot. Once Carol approves, Alice's phone connects to Bob's and Carol's and the three run the two rounds of MuSig2 live, usually in seconds.

In the first round, each phone picks a fresh secret random number for this one signature, called a nonce, and sends the public version of it to the others. In the second round, with every public nonce in hand, each phone computes its share of the signature, a partial signature, and sends it to Alice. Her phone adds the three shares into one ordinary signature, attaches it and broadcasts the payment.

The nonce is the dangerous part. A signature is built from the private key and the nonce, and if the same nonce were ever used for two different signatures, anyone holding both could subtract one from the other and solve for the private key. So OnlyBits keeps nonces only in memory, uses each one once, and when a round breaks off it starts over with new ones rather than resuming.

Step 1

Carol's approval is the last one in. Alice's phone, which proposed, connects to Bob's and Carol's. From here it runs live, usually in seconds.

Step 2

Alice's phone sends the approved proposal to both.

Step 3

Round 1: each phone picks a fresh secret nonce for this one signature, keeps it in memory only, and sends the public version to Alice.

Step 4

Alice's phone sends everyone's public nonces back to both.

Step 5

Round 2: with every nonce in hand, each phone computes its partial signature and sends it to Alice.

Step 6

Alice's phone adds the three shares into one ordinary signature and broadcasts the payment. The nonces were used once and are never used again.

Alice Bob Carol proposal nonce round 1: nonces all nonces round 2: partial sigs 3 shares added: 1 signature BROADCAST: PAYMENT SENT
The geometry is the invitation's, with one difference that matters: these arrows must all happen within about a minute of each other, while the invitation's could take days. Approval is asynchronous; signing is not.
In OnlyBits

What you see: after Bob approves, his card says "You approved. It signs when everyone has." Then the payment shows as sent.

What it hides: both rounds, the nonces, the partial signatures, and the fact that Alice's phone coordinates because she proposed. Bob's and Carol's apps have to be reachable for those seconds, which is what the push is for.

Look underneath

The messages, on the signing protocol onlybits/sign/2: Proposal, Nonces, AllNonces, Partials, Done { txid }. A signer whose user has not decided answers Waiting; one who declined answers Declined. The coordinator waits 30 seconds to connect, up to 120 seconds for nonces (the signer is checking inputs with its server first) and 60 seconds for partial signatures. It saves the final transaction before broadcasting it. The saved copy contains no nonces.

MuSig2 runs once per input. The example payment spends three coins, so each phone draws three pairs of nonces and returns three partial signatures.

Why a reused nonce gives away the key

A Schnorr signature is s = k + e*x, where k is the nonce, x the private key and e a hash of the message. Two signatures with the same k on different messages give

s1 - s2 = (e1 - e2) * x
x       = (s1 - s2) / (e1 - e2)

A MuSig2 partial signature has the same shape with two nonces, s_i = k_i1 + b*k_i2 + e*a_i*x_i, and the same weakness. A nonce saved to disk could be restored after a crash and used again with different co-signer nonces, so OnlyBits never saves one. Each nonce is generated from 32 fresh random bytes, mixed with the signing key and the message as BIP327 suggests. A round that times out discards its nonces; the approval stands, and the next attempt draws new ones and checks the inputs with the server again.

10 Cheating

Bob cannot pay himself, and a thief with Carol's phone cannot pay anyone

Suppose Bob proposes sending the 300,000 sats to an address of his own. Carol's phone shows her where the money actually goes, read from the transaction rather than from anything Bob wrote. It is not the recipient's address. Carol declines.

The proposal ends and nothing moves. Bob has no way to sign around her. His key is one of three parts of the lock, and a signature for the shared key cannot be produced without Carol's part. He also cannot slip a different transaction past her later: her phone only signs the exact proposal she approved.

Now suppose a thief takes Carol's phone. The app's phone lock asks for a fingerprint or the screen lock when the app opens and before money leaves. Even past that, the phone holds one key of three. The thief can propose or approve, but Alice and Bob still have to approve too, and they will not approve a payment to a stranger.

The attack the design does not stop

Any one of them can refuse forever. If Bob declines every payment, the fund stays where it is. There is no majority vote, no override and no deadline after which two of them can act. Every person holds a veto, and a veto can be used as a hostage.

Bob proposes 300,000 Carol's phone to: bc1q...bob9 (Bob) recipient: bc1q... declined nothing moves thief with Carol's phone 1 key of 3 Alice: no Bob: no a payment needs all three keys, so the thief holds a vote, not money
The same property protects against both: no single key can sign. The flip side is the callout above. Anyone who can block a theft can also block an honest payment.
In OnlyBits

What you see: Carol taps decline and gets "Decline this payment?" to confirm. Bob's payment ends as declined.

What it hides: the approval record that ties Carol's yes or no to the exact proposal, and the signing server turning away any device that is not in the policy.

Look underneath

When the coordinator connects, a signer first checks that the connecting device ID is one of the policy's signers and not itself; any other device is closed with code 1. It then looks up the approval its user gave for that exact proposal text. Declined goes back if the user declined, Waiting if they have not decided. Only an approved proposal is checked against the server and signed, and it is checked again even though it was checked when it arrived.

A declined answer reaches the proposer as SpendAnswer { approved: false } or as a Declined message during signing, and the payment ends with the outcome Declined.

What the thief can and cannot do

  • Cannot: produce a valid signature for the shared key without the other two partial signatures.
  • Can: decline real payments from Carol's phone, which is the hostage problem again.
  • Can, if they also have Carol's recovery words: nothing more. The words give the same one key.

The phone lock is policy enforced by the app, not by Bitcoin. The 3-of-3 rule is enforced by Bitcoin.

11 A lost phone

A lost phone comes back from its recovery words, and another signer sends the wallet back

If Carol loses her phone, she installs OnlyBits on a new one and restores from her recovery words. The words rebuild her bitcoin keys and her device identity exactly, so to Alice and Bob the new phone is the same Carol.

The words do not hold the shared wallet's policy, the list of keys and device IDs. Carol taps Restore a shared wallet and picks Bob. Bob's phone checks that Carol is one of the wallet's signers, then sends the policy back. Carol's phone rebuilds the same address and sees the same balance. If she restored from the Google backup instead, the policy comes back with it.

What does not come back is anything that was in flight: an open proposal or an unanswered invitation on the old phone is gone, and has to be made again.

Step 1

Carol installs OnlyBits on a new phone and restores from her twelve recovery words, or from the Google backup.

Step 2

The words rebuild her bitcoin key and her device ID exactly. To Alice and Bob, the new phone is the same Carol.

Step 3

The words do not hold the shared wallet's policy. Carol taps Restore a shared wallet and picks Bob.

Step 4

Bob's phone checks that Carol is one of the signers in its policy.

Step 5

It sends the policy back. Carol's phone rebuilds the same address and sees the same balance.

12 words or Google backup Carol, new phone same bitcoin key xpub .../1' same device ID e2b0 51d4 no policy yet Bob policy ask Carol in it? yes policy bc1p...q7k2 SAME ADDRESS, SAME BALANCE
The recovery words carry Carol's part of the lock, and the other signers carry the rest of the description. A shared wallet is restored from both, which is why the other signers' phones are part of Carol's backup.
In OnlyBits

What you see: after a restore, "Shared wallets come back from the other signers after recovery. Use Restore a shared wallet on Home." The screen says "Any other signer can send the wallet back. Their app must be open." and while it asks, "Their phone checks that you are in the wallet, then sends it back."

What it hides: the policy itself, unless you choose "Paste wallet details instead" and paste a copy another signer gave you.

Look underneath

The restored phone connects on the signing protocol and sends PolicyRequest. The other phone answers only if the caller is a signer in its policy, with Policy { policy }. The restored phone accepts that policy only if:

  • the sender is a signer in it and is not this phone,
  • every device ID is in canonical form,
  • this phone's own xpub and own device ID appear together as one signer.

The device ID comes back because it is derived from the seed (m/83696968'/128169'/32'/{coin}'). A wallet made before that derivation, with a stored random device key, gets IdentityChanged and has to pair again; the bitcoin keys and address are unaffected.

The Google backup's app state includes the shared-wallet policy. It excludes open invitations and pending shared payments. Recovery phrase explained covers the words and the backup.

12 The trade

Requiring every signature means one key lost for good loses the fund, and everyone must be reachable to pay

After the payment, 148,655 sats stay in the wallet. Those coins carry every cost of the design.

There is no recovery path. If Carol loses her phone and her recovery words and has no Google backup, her key is gone, and with 3-of-3 the remaining coins can never move again. Nobody can help: not Alice, not Bob, not the makers of the app. The wallet has no timelocked fallback and no 2-of-3 branch.

Everyone must be online to sign. Approvals can wait, but the signing rounds need all three apps reachable at the same moment. A phone that is off for a week holds the fund for a week.

One shared wallet per phone. Alice cannot be in two shared wallets on the same phone. And the fixed address means everyone the fund pays or is paid by can watch it. The app is also unaudited and in early development, so use amounts you can afford to lose.

A B C phone and words lost shared wallet 148,655 sats needs A + B + C stuck for good
A 3-of-3 wallet is exactly as recoverable as its least careful member. Each person's recovery words are not only their own backup; they are part of everyone else's.
In OnlyBits

What you see: "Every person approves each payment from their own phone. A phone holds one shared wallet."

What it hides: nothing it could fix for you. The app cannot add a recovery path to a wallet that was built without one, and the only protection is that each person keeps their recovery words or Google backup.

Look underneath

Costs, named:

  • Loss: n-of-n has zero tolerance. The output key has no script tree, so there is no other way to spend.
  • Liveness: the coordinator needs every signer within a 60 to 120 second window per round, every time.
  • Hostage: any signer can block every payment indefinitely.
  • Privacy: one address for deposits, payments and change.
  • One per phone: accepting a second invitation is refused while a shared wallet exists or another invitation could make one.
  • A relay: waking phones goes through the app's push relay, which learns who wakes whom.

What did not get traded away

No server and no company holds a key or can move the fund. Each phone checks every payment against a server its owner chose before signing. On-chain, the fund looks like one person's Taproot wallet, and a spend reveals neither the number of owners nor their keys. A thief needs every phone, and a cheat needs everyone else to cheat with them. That is a strong set of guarantees bought with a real risk of loss, and both belong in the decision.

One payment, three phones

Three keys, one signature, nobody alone

The rule
Every shared wallet is n-of-n, 2-of-2 or 3-of-3, so every person approves every payment.
The pairing
Phones swap device codes by QR or NFC and confirm them with an eight-digit fingerprint read aloud.
The key
MuSig2 adds the public keys with hash-derived weights, so no signer can cancel the others.
The address
One fixed Taproot address takes every deposit and every change output, and shows the fund's history to anyone who knows it.
The proposal
An unsigned payment is resent every five minutes and waits up to a day for every approval.
The checks
Each phone checks inputs, outputs, fee and locktime against its own server before it signs.
The signature
Two live rounds with single-use, memory-only nonces produce one ordinary Schnorr signature.
The bill
One key lost for good loses the fund, and any one person can block every payment.

Alice, Bob and Carol stand for any two or three people who share a wallet. Every amount is illustrative. The 150,000 sat contributions and 300,000 sat payment are chosen for round numbers, and the 1,345 sat fee assumes a three-input, two-output key-path spend of about 269 vB at 5 sat/vB, which gives the 148,655 sats of change. The fingerprints, addresses and the coin 7f3a:0 are made up. Everything the app does was checked against its source as of October 2026: the policy and checks in taproot.rs, proposals in spends.rs, invitations in invites.rs, the signing messages in signing.rs, contact codes in contact.rs, timing in node.rs and the push relay's own module. Where the project's README says signers must keep the app open on a signing screen, it is out of date and the source won. The parts most likely to age first are the timings (five minutes, 24 hours, seven days, the round timeouts), the three-signer limit, the one-wallet-per-phone rule and the fixed address, all of which are design choices rather than limits of Bitcoin. Read Taproot explained first if key paths are unfamiliar; Servers explained goes further into what a server can lie about; Locks explained is the next page and uses a script path where this one avoids it.