<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated>2023-06-09T12:21:12Z</updated>
  <generator>https://yabu.me</generator>

  <title>Nostr notes by Yaacov Akiba Slama [ARCHIVE]</title>
  <author>
    <name>Yaacov Akiba Slama [ARCHIVE]</name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://yabu.me/npub1z07sgdx84scq77jx3fddj3jt0w2w3vpa0t5gyk0nmcaggs3gyt7s6at6uz.rss" />
  <link href="https://yabu.me/npub1z07sgdx84scq77jx3fddj3jt0w2w3vpa0t5gyk0nmcaggs3gyt7s6at6uz" />
  <id>https://yabu.me/npub1z07sgdx84scq77jx3fddj3jt0w2w3vpa0t5gyk0nmcaggs3gyt7s6at6uz</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://yabu.me/nevent1qqszm9zmvg6e5ft6e0ajnktwtwyljrtpq2usfnexwpqf9n7u28pzz6qzyqfl6pp5c7krqrm6g6994k2xfdaef69s84aw3qje700r4pzz9q306tcj7wa</id>
    
      <title type="html">📅 Original date posted:2019-11-12 📝 Original message: On ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqszm9zmvg6e5ft6e0ajnktwtwyljrtpq2usfnexwpqf9n7u28pzz6qzyqfl6pp5c7krqrm6g6994k2xfdaef69s84aw3qje700r4pzz9q306tcj7wa" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsw9hmh99wwmcs4099xplz3gc96dlf0kwd5et6jndc7775tj6unqfq4a02y7&#39;&gt;nevent1q…02y7&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2019-11-12&lt;br/&gt;📝 Original message:&lt;br/&gt;On 11/11/2019 06:11, Rusty Russell wrote:&lt;br/&gt;&amp;gt; 2) From a technical point of view, it seems that there are already UBL &lt;br/&gt;&amp;gt; libraries in java and c#. I don&amp;#39;t think such library is hard to write in &lt;br/&gt;&amp;gt; go, rust.., so every wallet implementation can use them.&lt;br/&gt;&amp;gt; That is not the problem.  The problem is that our order flow is simple:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;         Seller: Offer&lt;br/&gt;&amp;gt;         Buyer: Invoice Request&lt;br/&gt;&amp;gt;         Seller: Invoice (or updated Offer)&lt;br/&gt;&amp;gt;         Buyer/Seller: Payment &amp;amp; Acknowledgement (atomic)&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; (This could, of course, fit into a larger business flow.)&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; The closest UBL flow seems to be:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;         Seller: Quotation&lt;br/&gt;&amp;gt;         Buyer: Order&lt;br/&gt;&amp;gt;         Seller: (Prepayment)Invoice (or updated Quotation)&lt;br/&gt;&lt;br/&gt;In UBL, 2 flows are defined (Traditional and Self Billing) and from what&lt;br/&gt;I know, the right flow depends on the country and even on the industry&lt;br/&gt;(services or goods for instance). What I suggest is to superpose the&lt;br/&gt;&amp;#34;strict&amp;#34; LN flow (invoice then payment) to the business flow. So for&lt;br/&gt;instance when a prepayment invoice is needed, the simplified (from UBL&lt;br/&gt;pov) flow will be:&lt;br/&gt;&lt;br/&gt;  Seller: Quotation (UBL)&lt;br/&gt;&lt;br/&gt;  Buyer: Order (UBL)&lt;br/&gt;&lt;br/&gt;  Seller: Prepayment Invoice (UBL)&lt;br/&gt;&lt;br/&gt;  Seller: Invoice (LN)&lt;br/&gt;&lt;br/&gt;  Buyer/Seller: Payment &amp;amp; Ack (LN)&lt;br/&gt;&lt;br/&gt;  Buyer: Receipt (UBL)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The advantage of such workflow are that we don&amp;#39;t need to add any fields&lt;br/&gt;to the current invoice structure, nor to define in the LN protocol new&lt;br/&gt;messages like offer or invoice request, nor to intervene in the semantic&lt;br/&gt;of the business workflow and in the required/optional fields in these&lt;br/&gt;messages.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; It&amp;#39;s also worth noting that, even compressed, none of the UBL examples&lt;br/&gt;&amp;gt; fit into the 1023 byte limit of the existing invoice format:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;         UBL-Quotation-2.1-Example.xml: 1864 bytes (gz)&lt;br/&gt;&amp;gt;         UBL-Order-2.1-Example.xml: 2515 bytes (gz)&lt;br/&gt;&amp;gt;         UBL-Invoice-2.1-Example.xml: 3163 bytes (gz)&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Indeed, that Quotation alone requires a 32x32 QR code.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; 	However, since invoices/offers and UBL are both structures, we&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; should have an explicit mapping between the two.  What fields should&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; have their own existence in the invoice/offer and what should be in a&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; general UBL field is a question we have to think on further.&lt;br/&gt;&amp;gt;&amp;gt; I agree that we don&amp;#39;t want duplication. This is the reason, I propose to &lt;br/&gt;&amp;gt;&amp;gt; use only ubl structure and add in the ln standard invoice an ubl &lt;br/&gt;&amp;gt;&amp;gt; &amp;#34;opaque&amp;#34; field which will be self-contained and only add in the &lt;br/&gt;&amp;gt;&amp;gt; invoice/offer/.. the fields specific to ln.&lt;br/&gt;&amp;gt; Except we need to go through the UBL spec and indicate exactly what&lt;br/&gt;&amp;gt; fields are permitted, and which are required.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Many UBI fields are not amenable to machine interpretation (eg. note&lt;br/&gt;&amp;gt; fields).  These must be either explicitly exposed to the buyer (in case&lt;br/&gt;&amp;gt; the seller uses them) such as shipping conditions, or explicitly&lt;br/&gt;&amp;gt; forbidden/ignored.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; This is not a small task, and required intimiate knowledge of the UBL&lt;br/&gt;&amp;gt; spec.  It&amp;#39;s not enough just to make something *look* like UBL.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Does anyone have expertise in this area?  Shall we form a sub-group to&lt;br/&gt;&amp;gt; investigate this properly?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Thanks!&lt;br/&gt;&amp;gt; Rusty.&lt;br/&gt;&amp;gt;
    </content>
    <updated>2023-06-09T12:57:19Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsqyfxge6dtnxtug4decs43t38ls72e4nx0tg39hu3aty62w849kpczyqfl6pp5c7krqrm6g6994k2xfdaef69s84aw3qje700r4pzz9q306w5ktqs</id>
    
      <title type="html">📅 Original date posted:2019-11-08 📝 Original message: Hi ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsqyfxge6dtnxtug4decs43t38ls72e4nx0tg39hu3aty62w849kpczyqfl6pp5c7krqrm6g6994k2xfdaef69s84aw3qje700r4pzz9q306w5ktqs" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqst4npdjjrazlals6zz0us0um3gdy6y8306nat7t4zffp00q88nxfcmmrh0c&#39;&gt;nevent1q…rh0c&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2019-11-08&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi Rusty.&lt;br/&gt;&lt;br/&gt;On 08/11/2019 05:09, Rusty Russell wrote:&lt;br/&gt;&amp;gt; Hi Yaacov,&lt;br/&gt;&amp;gt;          I&amp;#39;ve been pondering this since reading your comment on the PR!&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;          As a fan of standards, I am attracted to UBL (I&amp;#39;ve chaired an&lt;br/&gt;&amp;gt; OASIS TC in the past and have great respect for them); as a fan of&lt;br/&gt;&amp;gt; simplicity I am not.  Forcing UBL implementation on wallet providers is&lt;br/&gt;&amp;gt; simply not going to happen, whatever I were to propose.&lt;br/&gt;&lt;br/&gt;In fact, using UBL in LN specification is simpler than trying to &lt;br/&gt;understand the semantic of each field needed by businesses. You are &lt;br/&gt;right that using such a standard put the burden into wallet providers &lt;br/&gt;instead of LN developers, but as a wallet (breez) provider, I can say that:&lt;br/&gt;&lt;br/&gt;1) Most money transactions (currently in fiat) are between users and &lt;br/&gt;companies and not between two users. If we want to replace FIAT by &lt;br/&gt;bitcoin, we need to create an infrastructure which can be used by &lt;br/&gt;businesses. That means that LN needs to be able to be integrated easily &lt;br/&gt;into POS systems. So, as a wallet provider who want to help the &lt;br/&gt;transition from fiat to bitcoin, I need to be able to support standards &lt;br/&gt;even if that means that I have to implement using/parsing big and &lt;br/&gt;complicated standards.&lt;br/&gt;&lt;br/&gt;For simple user to user transaction, the wallet can decide to use only a &lt;br/&gt;subset of the fields defined by the standard.&lt;br/&gt;&lt;br/&gt;2) From a technical point of view, it seems that there are already UBL &lt;br/&gt;libraries in java and c#. I don&amp;#39;t think such library is hard to write in &lt;br/&gt;go, rust.., so every wallet implementation can use them.&lt;br/&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; 	We also don&amp;#39;t want duplication; what if the &amp;#34;UBL field&amp;#34; were to&lt;br/&gt;&amp;gt; say I were selling you a bridge for $1 and the description and amount&lt;br/&gt;&amp;gt; fields actually said I was selling you a coffee for $3?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; 	However, since invoices/offers and UBL are both structures, we&lt;br/&gt;&amp;gt; should have an explicit mapping between the two.  What fields should&lt;br/&gt;&amp;gt; have their own existence in the invoice/offer and what should be in a&lt;br/&gt;&amp;gt; general UBL field is a question we have to think on further.&lt;br/&gt;I agree that we don&amp;#39;t want duplication. This is the reason, I propose to &lt;br/&gt;use only ubl structure and add in the ln standard invoice an ubl &lt;br/&gt;&amp;#34;opaque&amp;#34; field which will be self-contained and only add in the &lt;br/&gt;invoice/offer/.. the fields specific to ln.&lt;br/&gt;&amp;gt;          Anyway, you&amp;#39;ll have to bear with me as I read this 172 page&lt;br/&gt;&amp;gt; standard...&lt;br/&gt;&lt;br/&gt;Sure :-)&lt;br/&gt;&lt;br/&gt;BTW, Thanks a lot for your all your work. LN would not have been where &lt;br/&gt;it is without your push.
    </content>
    <updated>2023-06-09T12:57:17Z</updated>
  </entry>

</feed>