From rusty at rustcorp.com.au Thu Nov 14 01:59:01 2019 From: rusty at rustcorp.com.au (Rusty Russell) Date: Thu, 14 Nov 2019 12:29:01 +1030 Subject: [Lightning-dev] [VERY ROUGH DRAFT] BOLT 12: Offers In-Reply-To: <90ab0a11-e4c1-92ad-e389-18514f67f2d2@slamail.org> References: <87zhhb2bpf.fsf@rustcorp.com.au> <798f31a2-fb53-a7ce-4bd6-ef06102eebba@slamail.org> <877e4bt678.fsf@rustcorp.com.au> <857a3203-6f85-b40a-9d7a-bee320180a32@slamail.org> <87d0dzqch4.fsf@rustcorp.com.au> <87y2wko2x4.fsf@rustcorp.com.au> <90ab0a11-e4c1-92ad-e389-18514f67f2d2@slamail.org> Message-ID: <87o8xfnrq2.fsf@rustcorp.com.au> Yaacov Akiba Slama writes: > So we can integrate between them without intermixing the semantics of > the protocols but we need only to define the interaction points between > them. > > In the previous worflow, the seller can for instance add in the LN > invoice H(Quotation (UBL)||Order(UBL)||Prepayment Invoice(UBL)), and use > H(Receipt(UBL)) as preimage. With such a workflow, the UBL documents are > cryptographically tied to the LN payment. > > So the property of UBL of not being machine *handlable* is not altered > but the LN cryptographic properties are still used to tie the workflow. > > Am I missing something? Sure, people can do this today: simply set your `d` field to "UBL: ". But it provide what we want from offers: 1. Does not provide a "static invoice" flow. 2. Does not provide a donation flow. 3. Does not provide a method for wallets to do recurrence. 4. Does not provide end-to-end over LN (i.e. no HTTP(s) requests). Cheers, Rusty.