Skip to content
LabsPrototypeBitcoin testnet4

Bitcoin vault

A Bitcoin address that no person holds a key to. Coins leave it only after a public delay, and guardians can stop a withdrawal or send everything to a recovery address the owner chose in advance.

The problem

Whoever holds a Bitcoin key can move the coins at once, and nothing can undo it. A thief who copies the key can empty the wallet in minutes. So can someone who threatens the owner until they hand it over, a “wrench attack”, and those keep happening.

Bitcoin itself has no way to say “this money may only leave slowly”. A proposal to add one (OP_VAULT) has not been adopted.

What stops it

  1. The vault’s address belongs to a NEAR contract. NEAR’s MPC network (Chain Signatures) signs for it only when that contract asks, and nobody holds its key.
  2. The owner’s withdrawals are public the moment they are asked for, and wait out the vault’s delay before anything is signed.
  3. During the delay, and until someone executes it, any guardian can veto a withdrawal for good.
  4. At any time, a guardian can send everything to the recovery address the owner fixed when the vault was made, with no delay. That is the only place they can send it.
  5. The contract builds each transaction itself, so the owner cannot hurry it and a guardian cannot redirect it. It has no upgrade method and no key, so its rules cannot be changed.

Limits

  • Once a withdrawal is executed its signatures may be public. After that only a claw-back can stop it, by replacing it before it confirms. The contract makes a claw-back able to pay more fee, but replacement is best effort: the recipient can make it harder by spending the unconfirmed output (“pinning”).
  • A guardian can block withdrawals indefinitely. The coins stay safe: a guardian can still only send them to the recovery address.
  • The contract cannot read Bitcoin, so it takes the coin amounts a request names on trust. A wrong amount only produces signatures the network rejects, and a corrected request still goes through. Signatures can only be combined within one exact transaction, and the contract refuses the same coins and outputs with other amounts.
  • A prototype on test networks, with test coins only.

The live vault

Looking up the vault