Ganji Uses Sequential Lightning Hold Invoices for Safe Milestone Escrow Payouts
The freelance platform Ganji, built on Bitcoin Lightning escrow, needed to support milestone-based payments for multi-stage jobs. Its engineers considered three designs, including one invoice per job and a single hold with internal accounting, but rejected them because Lightning hold invoices settle or cancel as a whole. They instead adopted sequential per-milestone holds, where each milestone gets its own hold invoice and must be funded, submitted, and paid in strict order. To prevent confusion, the team made the term "released" mean paid and "completed" mean payout pending, and enforces legal state transitions in both application code and the database.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in