<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:With Java, in theory, you can use SSLSocketFactory.createSocket(btsocket,&#xA;address, 1234, true) to wrap a bluetooth socket in SSL. However I have not&#xA;tried it.&#xA;&#xA;For now, just prototype and build your product without the security. We can&#xA;find someone to experiment with this, if you don&#39;t want to .&#xA;&#xA;Bluetooth needs encryption and MACs as well as signing to be secure,&#xA;because there could be radio MITM. Yes, this overlaps somewhat with the PKI&#xA;signing in BIP70, but not entirely - you might want to serve unsigned&#xA;payment requests, but still have confidentiality and authenticity for a&#xA;local face to face transaction. The signing and encryption does different&#xA;things.&#xA;&#xA;&#xA;On Thu, Mar 20, 2014 at 7:20 PM, Alex Kotenko &lt;alexykot at gmail.com&gt; wrote:&#xA;&#xA;&gt; Hmm, is there any other way to do it? Can we provide a signed payment&#xA;&gt; request and verify the sign on receiving side and this way protect from&#xA;&gt; bluetooth MitM attack? Quick googling showed that SSL over bluetooth isn&#39;t&#xA;&gt; a very well developed area, and my own skills are not enough to quickly&#xA;&gt; implement a reliable secure solution here.&#xA;&gt;&#xA;&gt;&#xA;&gt; 2014-03-20 10:36 GMT+00:00 Mike Hearn &lt;mike at plan99.net&gt;:&#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 start of&#xA;&gt;&gt; adding features.&#xA;&gt;&gt;&#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, so&#xA;&gt;&gt; Alex you could prototype with that, but we need to:&#xA;&gt;&gt;&#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 key&#xA;&gt;&gt; that&#39;s in the address part of the URI (which is needed for backwards compat&#xA;&gt;&gt; anyway).&#xA;&gt;&gt;&#xA;&gt;&gt; 2) Write a BIP for it and make sure it&#39;s interoperable&#xA;&gt;&gt;&#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 the&#xA;&gt;&gt; Bitcoin key, which should be easy to code up but is rather heavy on the&#xA;&gt;&gt; air, or roll a custom lightweight thing where we just do a basic ECDH, with&#xA;&gt;&gt; the servers key being the same as the address key. But rolling such&#xA;&gt;&gt; protocols is subtle and I guess it&#39;d need to be reviewed by people familiar&#xA;&gt;&gt; with such things.&#xA;&gt;&gt;&#xA;&gt;&gt; This feels like a good opportunity to grow the community - perhaps we can&#xA;&gt;&gt; find a volunteer in the forums who enjoys crypto.&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt; ------------------------------------------------------------------------------&#xA;&gt;&gt; Learn Graph Databases - Download FREE O&#39;Reilly Book&#xA;&gt;&gt; &#34;Graph Databases&#34; is the definitive new guide to graph databases and their&#xA;&gt;&gt; applications. Written by three acclaimed leaders in the field,&#xA;&gt;&gt; this first edition is now available. Download your free book today!&#xA;&gt;&gt; http://p.sf.net/sfu/13534_NeoTech&#xA;&gt;&gt; _______________________________________________&#xA;&gt;&gt; Bitcoin-development mailing list&#xA;&gt;&gt; Bitcoin-development at lists.sourceforge.net&#xA;&gt;&gt; https://lists.sourceforge.net/lists/listinfo/bitcoin-development&#xA;&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/6e2defd4/attachment.html&gt;</html></oembed>