Machine-to-machine LN payments



Summary:

The email conversation discusses a use case where a client can initiate a payment from another using spontaneous keysend payments. The flow involves the payee sending a keysend payment of a negligible amount to the payer who accepts it and verifies that it comes from a trusted node. The payer then makes a keysend payment of the required amount back to the payee, who accepts the payment. A custom plugin should be used to check incoming keysend messages and pay valid ones back. The email also explores the possibility of supporting a subscription-based service through Lightning Network. The proposed use case involves a user subscribing to a service by opening a channel with it and setting their LN node to trust invoices coming from the service. Upon subscription renewal, the service would send an invoice to the client's LN node, which would pay it straight away since it trusts the service's node. The user can cancel the subscription at any time by removing the service's LN node public key from the list of trusted nodes or set a limit on the amount and frequency of payments accepted from the trusted node.The email raises two questions: whether it is possible to send invoices just by LN means and if it is possible to enable automatic machine-to-machine payments by accepting invoices from trusted nodes. The use of TLVs is suggested for invoicing via LN.


Updated on: 2023-06-03T01:26:12.910097+00:00