<oembed><type>rich</type><version>1.0</version><author_name>npub14jv7tj33yt72yk8mljmvkck3p4xm5s3mxfpj289up38qqsn9dhkqeh00t4</author_name><author_url>https://nostr.ae/npub14jv7tj33yt72yk8mljmvkck3p4xm5s3mxfpj289up38qqsn9dhkqeh00t4</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2014-03-20&#xA;📝 Original message:We&#39;ll see how it will go, maybe I will get to implement this somewhere soon.&#xA;&#xA;Yes, I&#39;m thinking exactly about radio MitM attacks possible with bluetooth.&#xA;I&#39;ll also look into using PKI inside the PoS for the merchant. It would be&#xA;great user experience if we would be able to provide a signed payment&#xA;request with human recognizable merchant identity name in the way you&#xA;described much earlier in Bitcoin 0.9 FAQ. ​&#xA;&#xA;&#xA;2014-03-20 18:31 GMT+00:00 Mike Hearn &lt;mike at plan99.net&gt;:&#xA;&#xA;&gt; With Java, in theory, you can use SSLSocketFactory.createSocket(btsocket,&#xA;&gt; address, 1234, true) to wrap a bluetooth socket in SSL. However I have not&#xA;&gt; tried it.&#xA;&gt;&#xA;&gt; For now, just prototype and build your product without the security. We&#xA;&gt; can find someone to experiment with this, if you don&#39;t want to .&#xA;&gt;&#xA;&gt; Bluetooth needs encryption and MACs as well as signing to be secure,&#xA;&gt; because there could be radio MITM. Yes, this overlaps somewhat with the PKI&#xA;&gt; signing in BIP70, but not entirely - you might want to serve unsigned&#xA;&gt; payment requests, but still have confidentiality and authenticity for a&#xA;&gt; local face to face transaction. The signing and encryption does different&#xA;&gt; things.&#xA;&gt;&#xA;&gt;&#xA;&gt; On Thu, Mar 20, 2014 at 7:20 PM, Alex Kotenko &lt;alexykot at gmail.com&gt; wrote:&#xA;&gt;&#xA;&gt;&gt; Hmm, is there any other way to do it? Can we provide a signed payment&#xA;&gt;&gt; request and verify the sign on receiving side and this way protect from&#xA;&gt;&gt; bluetooth MitM attack? Quick googling showed that SSL over bluetooth isn&#39;t&#xA;&gt;&gt; a very well developed area, and my own skills are not enough to quickly&#xA;&gt;&gt; implement a reliable secure solution here.&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt; 2014-03-20 10:36 GMT+00:00 Mike Hearn &lt;mike at plan99.net&gt;:&#xA;&gt;&gt;&#xA;&gt;&gt;&gt; Encoding entire payment requests into qrcodes is definitely not the way&#xA;&gt;&gt;&gt; to go. They can already be large when signed and we&#39;re just at the start of&#xA;&gt;&gt;&gt; adding features.&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; Finishing off and standardising the bluetooth support is the way to go&#xA;&gt;&gt;&gt; (r=bt:mac). Andreas&#39; app already has some support for this I believe, so&#xA;&gt;&gt;&gt; Alex you could prototype with that, but we need to:&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; 1) Add an encryption/auth layer on top, because it runs over RFCOMM&#xA;&gt;&gt;&gt; sockets. The authentication would require proof of owning the Bitcoin key&#xA;&gt;&gt;&gt; that&#39;s in the address part of the URI (which is needed for backwards compat&#xA;&gt;&gt;&gt; anyway).&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; 2) Write a BIP for it and make sure it&#39;s interoperable&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; For the auth layer we could either use SSL and then just ignore the&#xA;&gt;&gt;&gt; server certificate and require signing of the session public key with the&#xA;&gt;&gt;&gt; Bitcoin key, which should be easy to code up but is rather heavy on the&#xA;&gt;&gt;&gt; air, or roll a custom lightweight thing where we just do a basic ECDH, with&#xA;&gt;&gt;&gt; the servers key being the same as the address key. But rolling such&#xA;&gt;&gt;&gt; protocols is subtle and I guess it&#39;d need to be reviewed by people familiar&#xA;&gt;&gt;&gt; with such things.&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; This feels like a good opportunity to grow the community - perhaps we&#xA;&gt;&gt;&gt; can find a volunteer in the forums who enjoys crypto.&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; ------------------------------------------------------------------------------&#xA;&gt;&gt;&gt; Learn Graph Databases - Download FREE O&#39;Reilly Book&#xA;&gt;&gt;&gt; &#34;Graph Databases&#34; is the definitive new guide to graph databases and&#xA;&gt;&gt;&gt; their&#xA;&gt;&gt;&gt; applications. Written by three acclaimed leaders in the field,&#xA;&gt;&gt;&gt; this first edition is now available. Download your free book today!&#xA;&gt;&gt;&gt; http://p.sf.net/sfu/13534_NeoTech&#xA;&gt;&gt;&gt; _______________________________________________&#xA;&gt;&gt;&gt; Bitcoin-development mailing list&#xA;&gt;&gt;&gt; Bitcoin-development at lists.sourceforge.net&#xA;&gt;&gt;&gt; https://lists.sourceforge.net/lists/listinfo/bitcoin-development&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt;&#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/018d3730/attachment.html&gt;</html></oembed>