docs(agents): record the barter-deposit affordance

This commit is contained in:
SkateSpots 2026-10-01 18:40:31 +07:00
parent 4f0416c23d
commit 9a82483cd3

View file

@ -190,7 +190,11 @@ session with **no other memory of this project**. So:
⚠️ A receipt proves the **PAYMENT, not delivery** — and applies to **money ⚠️ A receipt proves the **PAYMENT, not delivery** — and applies to **money
legs only**: a pure hardware swap has no invoice → no preimage → it stays legs only**: a pure hardware swap has no invoice → no preimage → it stays
*attested*; the `deposit` proof is the lever that gives barter a real cost. *attested*; the `deposit` proof is the lever that gives barter a real cost.
**Never** promote a barter or a plain `lninvoice` claim to verified. **Never** promote a barter or a plain `lninvoice` claim to verified. The
**barter deposit** is now a UI affordance: `ListingTradeActions` shows a
"Good-faith deposit" input for `price_type=trade` listings; paying it stores a
**deposit-slot** receipt (`saveReceipt(coord, r, 'deposit')`) that the buyer's
confirm attaches as `depositProof` (`method=trade`).
- **Cashu escrow** (marketplace): time-locked **P2PK** (lock to seller + buyer - **Cashu escrow** (marketplace): time-locked **P2PK** (lock to seller + buyer
refund key + locktime) — see **`ESCROW.md`** and `src/lib/cashuEscrow.ts` refund key + locktime) — see **`ESCROW.md`** and `src/lib/cashuEscrow.ts`
(unit-tested). Protocol: `cashu_token` on the `31872`; each user advertises a (unit-tested). Protocol: `cashu_token` on the `31872`; each user advertises a