<oembed><type>rich</type><version>1.0</version><author_name>npub17ty4mumkv43w8wtt0xsz2jypck0gvw0j8xrcg6tpea25z2nh7meqf4qgyd</author_name><author_url>https://nostr.ae/npub17ty4mumkv43w8wtt0xsz2jypck0gvw0j8xrcg6tpea25z2nh7meqf4qgyd</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2014-03-20&#xA;📝 Original message:Very, very limited. The more data you stuff in them, the less reliable and&#xA;slower scanning becomes. A URL is about the limit of what&#39;s practically&#xA;achievable. Even with that, BitPay have been complaining about the&#xA;increased character length from adding the https url to download the&#xA;payment request (though not escaping reduces character count by a lot and&#xA;is valid).&#xA;&#xA;X.509 is extremely bloated, partly due to the number of features it&#xA;supports, partly due to its history but mostly due to the widespread use of&#xA;RSA which generates giant keys and signatures. Of course you can get ECC&#xA;certs as well, but in practice most merchants don&#39;t seem to use them yet.&#xA;There&#39;s no way you can fit a cert chain into a QR code.&#xA;&#xA;However, this is no big deal, because for the serverless PoS device case&#xA;Alex cares about you need a backchannel to submit the transaction and&#xA;refund address anyway, so Bluetooth is already useful/required. Downloading&#xA;the payment request via it as well as uploading the response is not a big&#xA;change and - as mentioned - already implemented by Andreas and myself some&#xA;time ago.&#xA;&#xA;&#xA;&#xA;On Thu, Mar 20, 2014 at 1:12 PM, Adam Back &lt;adam at cypherspace.org&gt; wrote:&#xA;&#xA;&gt; Whats a sensible limit on practical/convenient QR code size?&#xA;&gt;&#xA;&gt; How much of the payment protocol message size comes from use of x509?&#xA;&gt;&#xA;&gt; (Just exploring what the options are).&#xA;&gt;&#xA;&gt; Adam&#xA;&gt;&#xA;&gt;&#xA;&gt; On Thu, Mar 20, 2014 at 11:36:09AM +0100, Mike Hearn wrote:&#xA;&gt;&#xA;&gt;&gt;   Encoding entire payment requests into qrcodes is definitely not the way&#xA;&gt;&gt;   to go. They can already be large when signed and we&#39;re just at the&#xA;&gt;&gt;   start of adding features.&#xA;&gt;&gt;   Finishing off and standardising the bluetooth support is the way to go&#xA;&gt;&gt;   (r=bt:mac). Andreas&#39; app already has some support for this I believe,&#xA;&gt;&gt;   so Alex you could prototype with that, but we need to:&#xA;&gt;&gt;   1) Add an encryption/auth layer on top, because it runs over RFCOMM&#xA;&gt;&gt;   sockets. The authentication would require proof of owning the Bitcoin&#xA;&gt;&gt;   key that&#39;s in the address part of the URI (which is needed for&#xA;&gt;&gt;   backwards compat anyway).&#xA;&gt;&gt;   2) Write a BIP for it and make sure it&#39;s interoperable&#xA;&gt;&gt;   For the auth layer we could either use SSL and then just ignore the&#xA;&gt;&gt;   server certificate and require signing of the session public key with&#xA;&gt;&gt;   the Bitcoin key, which should be easy to code up but is rather heavy on&#xA;&gt;&gt;   the air, or roll a custom lightweight thing where we just do a basic&#xA;&gt;&gt;   ECDH, with the servers key being the same as the address key. But&#xA;&gt;&gt;   rolling such protocols is subtle and I guess it&#39;d need to be reviewed&#xA;&gt;&gt;   by people familiar with such things.&#xA;&gt;&gt;   This feels like a good opportunity to grow the community - perhaps we&#xA;&gt;&gt;   can find a volunteer in the forums who enjoys crypto.&#xA;&gt;&gt;&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20140320/d9962f3d/attachment.html&gt;</html></oembed>