Implement noffer-based cash-out flow #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implement cash-out (user sells bitcoin → receives cash) using CLINK Offers protocol (noffer, Kind 21001) instead of direct invoice generation.
Current Implementation
The state machine currently uses
generateInvoiceservice to create Lightning invoices directly:This approach requires:
Proposed noffer Implementation
Use CLINK Offers protocol (Kind 21001) for a more flexible flow:
Flow
Benefits
Implementation Tasks
1. noffer Generation Service
2. State Machine Updates
3. Nostr Subscription for Offer Requests
4. Invoice Response
5. UI Updates
Security Considerations
Related
clink/specs/clink-offers.mdpackages/clink/src/noffer.tspackages/state-machine/src/machine.tspadreug referenced this issue2026-06-14 06:54:32 +00:00
padreug referenced this issue2026-06-14 06:54:33 +00:00
padreug referenced this issue2026-06-14 06:54:35 +00:00
padreug referenced this issue2026-06-14 06:54:36 +00:00
padreug referenced this issue2026-06-14 06:54:38 +00:00
padreug referenced this issue2026-06-14 06:54:39 +00:00
padreug referenced this issue2026-06-14 06:54:40 +00:00
padreug referenced this issue2026-06-14 06:54:41 +00:00