Treasury · Phase 1
Founding capital escrow with refund timelock
Hold each member's contribution toward the land purchase so that no party, the village included, controls it alone, and the member gets it back if the deal does not happen.
- Parties
- member, cooperative or founding LLC, independent escrow agent
- Tools
- Liana, Bitcoin Core, Ledger, BitBox02 or Jade signers
- Maturity
- Proven tools
What Bitcoin enforces
No single party can move the funds before the refund date; the member alone can reclaim after it; the closing is all-or-nothing.
Per-member P2WSH output: any 2 of member, cooperative and agent; member alone after the refund date. Closing spends all escrows in one transaction, signed SIGHASH_ALL by every member (known circle) or SIGHASH_ALL|ANYONECANPAY per input (open pledging), so closing is all-or-nothing.
What the agreement enforces
Conditions for release, agent duties and fee, dollar target, refund date and price-move rules.
Escrow agreement (Ricardian), referenced by the occupancy agreement
Who can move it, and when
| Signers | Only after |
|---|---|
| any 2 of member, coop, agent | At any time |
| member_r alone | after 1822348800 (2027-10-01 00:00 UTC, median time past) |
What can go wrong
| Failure | What limits the harm |
|---|---|
| Member loses keys | Coop and agent can still release or refund by agreement; separate refund key backed up |
| Agent disappears | Member plus coop still release |
| Fee spike at closing | Sign with a fee margin; keep a CPFP-able output |
| Bitcoin price falls before closing | Convert the purchase amount to dollars when the purchase contract is signed |
| Signer lacks non-default sighash support | Use SIGHASH_ALL closing for a known circle |
| Coercion of a member | A coerced member alone cannot release before the refund date |
The clause
The Agent shall co-sign release to the Seller's closing account only on delivery of a signed purchase contract, title commitment and the inspection report named in Schedule A; shall co-sign a refund to the Member if those conditions fail by the Refund Date; and acts only under this agreement. Contributions are valued in dollars at the rate on the closing date; if the dollar target is not met the round fails and every escrow is refunded.
What gets recorded
- Escrow agreement hash and signed acceptances in the register
- Descriptor held by member, cooperative and agent
- Closing PSBT and transaction id
The code
Policy
or(95@thresh(2,pk(member),pk(coop),pk(agent)),5@and(pk(member_r),after(1822348800)))Descriptor (SegWit)
wsh(or_d(multi(2,member,coop,agent),and_v(v:pkh(member_r),after(1822348800))))Descriptor (Taproot)
tr(NUMS,{and_v(v:pk(member_r),after(1822348800)),multi_a(2,member,coop,agent)})Sources
- Todd, Peter. BIP 65: OP_CHECKLOCKTIMEVERIFY. Bitcoin Improvement Proposals (GitHub). Accessed 2026-11-30.
- Kerin, T.; Friedenbach, M.. BIP 113: Median time-past as endpoint for lock-time calculations. bitcoin/bips repository, 2015-08-10. Accessed 2026-11-30.
- Bitcoin Wiki contributors. Contract. en.bitcoin.it, 2026. Accessed 2026-11-30.
- Bitcoin Core contributors. walletprocesspsbt (Bitcoin Core 31.0 RPC documentation). bitcoincore.org, 2026. Accessed 2026-11-30.
- Wizardsardine. Liana wallet. lianawallet.com, 2026. Accessed 2026-11-30.
- rust-bitcoin contributors. miniscript 13.2.0 (Rust crate). crates.io, 2026-10-17. Accessed 2026-11-30.
- Bitcoinerlab. @bitcoinerlab/miniscript 2.0.1. npm, 2026-11-05. Accessed 2026-11-30.