<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-07-16&#xA;📝 Original message:I&#39;m all for fixing bugs, but I know from bitter experience that outside the&#xA;BMP dragons lurk. Browsers don&#39;t even expose Unicode APIs at all. You end&#xA;up needing to ship an entire pure-js implementation, which can be too large&#xA;for some use cases (too much time sunk on that issue in my last job).&#xA;&#xA;I&#39;m hoping BIP 38 doesn&#39;t get widely used anyway, to be frank. People&#xA;moving private keys around by hand has caused quite a few problems in the&#xA;past, sometimes people lost money. It&#39;s better to work at the level of a&#xA;wallet and ideally ask people to move money using regular transactions. Way&#xA;less potential for errors.&#xA;&#xA;Regardless, I&#39;ll file a JVM bug and see what the outcome is.&#xA;&#xA;&#xA;On Wed, Jul 16, 2014 at 12:23 AM, Aaron Voisine &lt;voisine at gmail.com&gt; wrote:&#xA;&#xA;&gt; If the user creates a password on an iOS device with an astral&#xA;&gt; character and then can&#39;t enter that password on a JVM wallet, that&#xA;&gt; sucks. If JVMs really can&#39;t support unicode NFC then that&#39;s a strong&#xA;&gt; case to limit the spec to the subset of unicode that all popular&#xA;&gt; platforms can support, but it sounds like it might just be a JVM&#xA;&gt; string library bug that could hopefully be reported and fixed. I get&#xA;&gt; the same result as in the test case using apple&#39;s&#xA;&gt; CFStringNormalize(passphrase, kCFStringNormalizationFormC);&#xA;&gt;&#xA;&gt; Aaron Voisine&#xA;&gt; breadwallet.com&#xA;&gt;&#xA;&gt;&#xA;&gt; On Tue, Jul 15, 2014 at 11:20 AM, Mike Hearn &lt;mike at plan99.net&gt; wrote:&#xA;&gt; &gt; Yes, we know, Andreas&#39; code is indeed doing normalisation.&#xA;&gt; &gt;&#xA;&gt; &gt; However it appears the output bytes end up being different. What I get&#xA;&gt; back&#xA;&gt; &gt; is:&#xA;&gt; &gt;&#xA;&gt; &gt; cf930001303430300166346139&#xA;&gt; &gt;&#xA;&gt; &gt; vs&#xA;&gt; &gt;&#xA;&gt; &gt; cf9300f0909080f09f92a9&#xA;&gt; &gt;&#xA;&gt; &gt; from the spec.&#xA;&gt; &gt;&#xA;&gt; &gt; I&#39;m not sure why. It appears this is due to the character from the astral&#xA;&gt; &gt; planes. Java is old and uses 16 bit characters internally - it wouldn&#39;t&#xA;&gt; &gt; surprise me if there&#39;s some weirdness that means it doesn&#39;t/won&#39;t support&#xA;&gt; &gt; this kind of thing.&#xA;&gt; &gt;&#xA;&gt; &gt; I recommend instead that any implementation that wishes to be compatible&#xA;&gt; &gt; with JVM based wallets (I suspect Android is the same) just refuse any&#xA;&gt; &gt; passphrase that includes characters outside the BMP. At least unless&#xA;&gt; someone&#xA;&gt; &gt; can find a fix. I somehow doubt this will really hurt anyone.&#xA;&gt; &gt;&#xA;&gt; &gt;&#xA;&gt; ------------------------------------------------------------------------------&#xA;&gt; &gt; Want fast and easy access to all the code in your enterprise? Index and&#xA;&gt; &gt; search up to 200,000 lines of code with a free copy of Black Duck&#xA;&gt; &gt; Code Sight - the same software that powers the world&#39;s largest code&#xA;&gt; &gt; search on Ohloh, the Black Duck Open Hub! Try it now.&#xA;&gt; &gt; http://p.sf.net/sfu/bds&#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;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20140716/c9ab11cb/attachment.html&gt;</html></oembed>