stakwork / sphinx-js

Web extension and PWA for Sphinx.chat and 2nd Brain
2 stars 2 forks source link

Setup Lightning Node #3

Closed ecurrencyhodler closed 9 months ago

ecurrencyhodler commented 9 months ago

Setup Node and backend Setup Lightning node in a swarm. Open endpoint to call to Swarm, generate invoice from lightning node, and display invoice to user via macaroon. Store invoices in backend per L402. Enable soft-delete of expired invoices.

Design

Here is the payment flow for context: Desktop - 13 Desktop - 4 Desktop - 5 Desktop - 6 Desktop - 7 Desktop - 8

ecurrencyhodler commented 9 months ago

This is not needed as payment logic will be handled through the boltwall of each invidivual secondbrain.