# Locking the BTC received from swaps: what Bitcoin can and cannot do

The requirement: "every BTC swapped for the new token should stay locked somewhere, where no
operator and no entity can move it, as a backup for the token". Written that way it contains a
contradiction, and it is worth stating it plainly before choosing anything.

**A reserve you can never spend is indistinguishable from a burn.** Bitcoin script gives an
output exactly two possibilities: it has a spending path, or it is provably unspendable. There
is no third state called "held but untouchable". Anything that can be moved later can be moved
by whoever holds the keys; anything nobody can move is destroyed value, not a backup.

## The four real options

| Design | Who can move the funds | Verifiable on-chain | Is it a reserve? |
|---|---|---|---|
| **Provably unspendable** (`OP_RETURN`, or the `1BitcoinEater…` address) | Nobody, ever | Yes, trivially | No — the BTC is gone |
| **Timelock vault** (`OP_CHECKLOCKTIMEVERIFY` at a future block) | Key holder, only after that block | Yes | Partly — locked for years, not forever |
| **M-of-N multisig** (2-of-3, 3-of-5) | M signers together; no single operator | Yes (descriptor + address) | Yes |
| **Covenant** ("may only spend to X") | Nobody, until the rule is satisfied | — | Not available: `OP_CTV` is not active on Bitcoin |

## What each one actually buys you

**Burn.** Send the swap proceeds to an `OP_RETURN` output carrying a commitment (for example the
swap id). Anyone can verify the transaction and the amount. You get a public, mathematical
statement: "this much BTC was destroyed". You do not get a reserve, and you destroy the very
thing the seller wanted to be paid in. If the token's story is "supply mirrors destroyed BTC",
that is a coherent product — call it proof of burn and stop calling it backing.

**Timelock.** Lock to block 2,000,000,000 (≈ year 2140). For the next century nobody can move it,
and everyone can check the script. The catch is honest and small: after that block the key
holder can spend it, so it is "locked for our lifetime", not "locked forever".

**Multisig.** 3-of-5 with keys held by people who do not answer to each other: you, a hardware
wallet in a safe, and three independent holders (community members, a notary, whoever). No single
person — including you — can move the reserve. That is the closest thing Bitcoin has to "no
operator can touch it", and the descriptor makes it auditable: publish the five public keys and
the address, and anyone can rebuild the address and watch the balance.

**Covenants.** Would allow "this output may only be spent to address X" — exactly the "locked
but reserved" state. Not active on Bitcoin mainnet, and relying on it would be a bet on a
protocol change.

## What no design gives you

- **An automatic link to the ERC-20.** A contract on an EVM chain cannot read the Bitcoin
  blockchain. Any "the token is backed by that BTC" statement is an attestation by a person,
  not a property of the code. The whitepaper says this in section 2; keep it true.
- **Protection from the keyholders themselves.** Multisig distributes trust; it does not remove it.
- **Recovery.** If the keys are lost, the reserve is lost. There is no admin to call.

## Recommendation

Decide what the sentence is supposed to mean:

1. **"Nobody can ever move it"** → burn to `OP_RETURN` with the swap id in the output. Build a page
   that lists every burn transaction and the total. Honest, verifiable, and it is not a reserve.
2. **"No single person or company can move it"** → 3-of-5 multisig, keys with independent holders,
   descriptor and address published, balance page on the site. This is the practical answer to
   the request.
3. **"Locked beyond anyone's lifetime"** → CLTV vault to 2140, same publication.

## Tool in this repository

`scripts/gen-multisig.js` builds the P2WSH address and descriptor from public keys only:

```bash
node scripts/gen-multisig.js 3 <pk1> <pk2> <pk3> <pk4> <pk5>
# → address bc1q… , descriptor wsh(multi(3,…))
```

Each signer imports the descriptor in Sparrow and checks that the address matches. Publish both.
The site can then show the address and its balance, read from a public API, so anyone can watch
the reserve without trusting the operator.
