<oembed><type>rich</type><version>1.0</version><author_name>npub17qxssk9sj2r7jswvh3y32e7vwz7mcckhz33gk9nurdmw0lhsfkgswupwet</author_name><author_url>https://nostr.ae/npub17qxssk9sj2r7jswvh3y32e7vwz7mcckhz33gk9nurdmw0lhsfkgswupwet</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2015-01-19&#xA;📝 Original message:Even if a compact binary encoding is a high priority, there are more &#34;standard&#34; choices than Google Protocol Buffers. For example, ASN.1 is a very rigorously defined standard that has been around for decades, and ASN.1 even has an XML encoding (XER) that is directly convertible to/from the binary encoding (BER/DER), given the schema. In practice, I&#39;m mostly agnostic about what encoding is actually used in BIP70, and I wouldn&#39;t fault BIP70 for choosing Google Protocol Buffers, but the very existence of Protobuf perplexes me, as it apparently re-solves a problem that was solved 40 years ago by ASN.1. It&#39;s as though the engineers at Google weren&#39;t aware that ASN.1 existed.&#xA;&#xA;&#xA;On Monday, 19 January 2015, at 7:07 pm, Richard Brady wrote:&#xA;&gt; Hi Gavin, Mike and co&#xA;&gt; &#xA;&gt; Is there a strong driver behind the choice of Google Protocol Buffers for&#xA;&gt; payment request encoding in BIP-0070?&#xA;&gt; &#xA;&gt; Performance doesn&#39;t feel that relevant when you think that:&#xA;&gt; 1. Payment requests are not broadcast, this is a request / response flow,&#xA;&gt; much more akin to a web request.&#xA;&gt; 2. One would be cramming this data into a binary format just so you can&#xA;&gt; then attach it to a no-so-binary format such as HTTP.&#xA;&gt; &#xA;&gt; Some great things about protocols/encodings such as HTTP/JSON/XML are:&#xA;&gt; 1. They are human readable on-the-wire. No Wireshark plugin required,&#xA;&gt; tcpdump or ngrep will do.&#xA;&gt; 2. There are tons of great open source libraries and API for parsing /&#xA;&gt; manipulating / generating.&#xA;&gt; 3. It&#39;s really easy to hand-craft a test message for debugging.&#xA;&gt; 4. The standards are much easier to read and write. They don&#39;t need to&#xA;&gt; contain code like BIP-0070 currently does and they can contain examples,&#xA;&gt; which BIP70 does not.&#xA;&gt; 5. They are thoroughly specified by independent standards bodies such as&#xA;&gt; the IETF. Gotta love a bit of MUST / SHOULD / MAY in a standard.&#xA;&gt; 6. They&#39;re a family ;-)&#xA;&gt; &#xA;&gt; Keen to hear your thoughts on this and very keen to watch the payment&#xA;&gt; protocol grow regardless of encoding choice! My background is SIP / VoIP&#xA;&gt; and I think that could be a fascinating use case for this protocol which&#xA;&gt; I&#39;m hoping to do some work on.&#xA;&gt; &#xA;&gt; Best,&#xA;&gt; Richard</html></oembed>