Treasury · Phase 3
Internal loans with collateral escrow
Let the village lend to a member, optionally secured by the member's bitcoin.
- Parties
- borrower, lender (cooperative), arbiter
- Tools
- Liana or Bitcoin Core, Hardware signers
- Maturity
- Proven tools
What Bitcoin enforces
Nobody can take the collateral alone; the borrower recovers it if lender and arbiter vanish.
Collateral in a 2-of-3 of borrower, lender and arbiter; borrower alone after maturity plus grace. No automatic liquidation (no price oracle).
What the agreement enforces
The loan, interest, default, valuation of collateral and return of excess.
Loan agreement (Ricardian) and promissory note
Who can move it, and when
| Signers | Only after |
|---|---|
| any 2 of borrower, lender, arbiter | At any time |
| borrower_r alone | after 1861920000 (2029-01-01) |
What can go wrong
| Failure | What limits the harm |
|---|---|
| Collateral value falls below the loan | Conservative loan-to-value; margin rules in the agreement |
| Member-to-village notes treated as securities | Avoid member-to-village notes unless counsel approves; prefer liens on membership shares |
| Arbiter unavailable | Any two parties can act; borrower refund path |
The clause
On an Event of Default the Lender and Arbiter may transfer collateral sufficient to repay the outstanding balance at the rate published by the named price source, and shall return any excess to the Borrower.
What gets recorded
- Loan agreement hash and signatures in the register
- Collateral descriptor held by all three parties
The code
Policy
or(95@thresh(2,pk(borrower),pk(lender),pk(arbiter)),5@and(pk(borrower_r),after(1861920000)))Descriptor (SegWit)
wsh(or_d(multi(2,borrower,lender,arbiter),and_v(v:pkh(borrower_r),after(1861920000))))Descriptor (Taproot)
tr(NUMS,{and_v(v:pk(borrower_r),after(1861920000)),multi_a(2,borrower,lender,arbiter)})Sources
- DLC specification contributors. Specification for Discreet Log Contracts. GitHub discreetlogcontracts/dlcspecs, 2023-06-21. Accessed 2026-11-30.
- Todd, Peter. BIP 65: OP_CHECKLOCKTIMEVERIFY. Bitcoin Improvement Proposals (GitHub). Accessed 2026-11-30.