<oembed><type>rich</type><version>1.0</version><author_name>npub1vqn4xza40eqyxv2hx5a2p504zn92f42qx8wcvuvxpw4a4w78uy0sf2g27t</author_name><author_url>https://nostr.ae/npub1vqn4xza40eqyxv2hx5a2p504zn92f42qx8wcvuvxpw4a4w78uy0sf2g27t</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2014-07-15&#xA;📝 Original message:I don&#39;t know for sure if the test vector is correct NFC form.  But for what&#xA;it&#39;s worth, the Pile of Poo character is pretty easily accessible on the&#xA;iPhone and Android keyboards, and in this string it&#39;s already in NFC form&#xA;(f09f92a9 in the test result).  I&#39;ve certainly seen it in usernames around&#xA;the internet, and wouldn&#39;t be surprised to see it in passphrases entered on&#xA;smartphones, especially if the author of a BIP38-compatible app includes a&#xA;(possibly ill-advised) suggestion to have your passphrase &#34;include special&#xA;characters&#34;.&#xA;&#xA;I haven&#39;t seen the NULL character on any smartphone keyboards, though - I&#xA;assume the iOS and Android developers had the foresight to know how much&#xA;havoc that would wreak on systems assuming null-terminated strings.  It&#xA;seems unlikely that NULL would be in a real-world passphrase entered by a&#xA;sane user.&#xA;&#xA;&#xA;On Tue, Jul 15, 2014 at 8:03 AM, Mike Hearn &lt;mike at plan99.net&gt; wrote:&#xA;&#xA;&gt; [+cc aaron]&#xA;&gt;&#xA;&gt; We recently added an implementation of BIP 38 (password protected private&#xA;&gt; keys) to bitcoinj. It came to my attention that the third test vector may&#xA;&gt; be broken. It gives a hex version of what the NFC normalised version of the&#xA;&gt; input string should be, but this does not match the results of the Java&#xA;&gt; unicode normaliser, and in fact I can&#39;t even get Python to print the names&#xA;&gt; of the characters past the embedded null. I&#39;m curious where this normalised&#xA;&gt; version came from.&#xA;&gt;&#xA;&gt; Given that &#34;pile of poo&#34; is not a character I think any sane user would&#xA;&gt; put into a passphrase, I question the value of this test vector. NFC form&#xA;&gt; is intended to collapse things like umlaut control characters onto their&#xA;&gt; prior code point, but here we&#39;re feeding the algorithm what is basically&#xA;&gt; garbage so I&#39;m not totally surprised that different implementations appear&#xA;&gt; to disagree on the outcome.&#xA;&gt;&#xA;&gt; Proposed action: we remove this test vector as it does not represent any&#xA;&gt; real world usage of the spec, or if we desperately need to verify NFC&#xA;&gt; normalisation I suggest using a different, more realistic test string, like&#xA;&gt; Zürich, or something written in Thai.&#xA;&gt;&#xA;&gt;&#xA;&gt;&#xA;&gt; Test 3:&#xA;&gt;&#xA;&gt;    - Passphrase ϓ␀𐐀💩 (\u03D2\u0301\u0000\U00010400\U0001F4A9; GREEK&#xA;&gt;    UPSILON WITH HOOK &lt;http://codepoints.net/U+03D2&gt;, COMBINING ACUTE&#xA;&gt;    ACCENT &lt;http://codepoints.net/U+0301&gt;, NULL&#xA;&gt;    &lt;http://codepoints.net/U+0000&gt;, DESERET CAPITAL LETTER LONG I&#xA;&gt;    &lt;http://codepoints.net/U+10400&gt;, PILE OF POO&#xA;&gt;    &lt;http://codepoints.net/U+1F4A9&gt;)&#xA;&gt;    - Encrypted key:&#xA;&gt;    6PRW5o9FLp4gJDDVqJQKJFTpMvdsSGJxMYHtHaQBF3ooa8mwD69bapcDQn&#xA;&gt;    - Bitcoin Address: 16ktGzmfrurhbhi6JGqsMWf7TyqK9HNAeF&#xA;&gt;    - Unencrypted private key (WIF):&#xA;&gt;    5Jajm8eQ22H3pGWLEVCXyvND8dQZhiQhoLJNKjYXk9roUFTMSZ4&#xA;&gt;    - *Note:* The non-standard UTF-8 characters in this passphrase should&#xA;&gt;    be NFC normalized to result in a passphrase of0xcf9300f0909080f09f92a9 before&#xA;&gt;    further processing&#xA;&gt;&#xA;&gt;&#xA;&gt;&#xA;&gt;&#xA;&gt;&#xA;&gt; ------------------------------------------------------------------------------&#xA;&gt; Want fast and easy access to all the code in your enterprise? Index and&#xA;&gt; search up to 200,000 lines of code with a free copy of Black Duck&#xA;&gt; Code Sight - the same software that powers the world&#39;s largest code&#xA;&gt; search on Ohloh, the Black Duck Open Hub! Try it now.&#xA;&gt; http://p.sf.net/sfu/bds&#xA;&gt; _______________________________________________&#xA;&gt; Bitcoin-development mailing list&#xA;&gt; Bitcoin-development at lists.sourceforge.net&#xA;&gt; https://lists.sourceforge.net/lists/listinfo/bitcoin-development&#xA;&gt;&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20140715/6bed40c7/attachment.html&gt;</html></oembed>