Re: [Lightning-dev] ECDH for spontaneous payments and offline vending machines

2019-06-10 Thread ZmnSCPxj via Lightning-dev
Good morning Stepan, > # Offline invoice generation > > Some time ago there was a discussion about offline vending machines, the idea > was to pre-load a vending machine with invoices, display invoices to the user > and ask for the preimage as a payment confirmation. When all invoices are > use

Re: [Lightning-dev] ECDH for spontaneous payments and offline vending machines

2019-06-10 Thread Stepan Snigirev
Hi ZmnSCPxj, > Just to be clear: each time the vending node needs a new invoice, it generates a new ephemeral key `k`? Yes, the vending machine generates a new `k` for every invoice. The same technique can be used for spontaneous payments as well and in this case we can also provide additional i