From jb55 at jb55.com Thu May 14 17:45:23 2020 From: jb55 at jb55.com (William Casarin) Date: Thu, 14 May 2020 10:45:23 -0700 Subject: [Lightning-dev] Machine-to-machine LN payments In-Reply-To: References: Message-ID: <87d076e7gs.fsf@jb55.com> Eugene via Lightning-dev writes: > Hello, list, > > I haven't closely following the Lightning Network's state of affairs since late 2018 and I wondering, is it possible to support the following use-case with LN: > > 1. A user subscribes to the service by opening a channel with it > 2. User sets his LN node to "trust" invoices that come from said service > 3. On subscription renewal, service sends an invoice to the client's LN node > 4. Since the client's node is "trusting" service's node, it pays invoice straight away > > User, of course, may cancel the subscription at any time by removing service's LN node public key from the list of "trusted". Or the user can set a limit on the amount and the frequency of payments that would be accepted from the trusted node. > > For that matter, the questions are: > > 1. Is it possible to send invoices just by LN means? (Should we use TLVs?) > 2. Is it possible to enable automatic machine-to-machine payments? As in the example above, by accepting invoices from "trusted" nodes. Offers[0] should support these use cases Cheers, Will [0] https://lists.linuxfoundation.org/pipermail/lightning-dev/2019-November/002276.html