{"type":"rich","version":"1.0","author_name":"npub17ty4mumkv43w8wtt0xsz2jypck0gvw0j8xrcg6tpea25z2nh7meqf4qgyd","author_url":"https://nostr.ae/npub17ty4mumkv43w8wtt0xsz2jypck0gvw0j8xrcg6tpea25z2nh7meqf4qgyd","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2014-07-15\n📝 Original message:[+cc aaron]\n\nWe recently added an implementation of BIP 38 (password protected private\nkeys) to bitcoinj. It came to my attention that the third test vector may\nbe broken. It gives a hex version of what the NFC normalised version of the\ninput string should be, but this does not match the results of the Java\nunicode normaliser, and in fact I can't even get Python to print the names\nof the characters past the embedded null. I'm curious where this normalised\nversion came from.\n\nGiven that \"pile of poo\" is not a character I think any sane user would put\ninto a passphrase, I question the value of this test vector. NFC form is\nintended to collapse things like umlaut control characters onto their prior\ncode point, but here we're feeding the algorithm what is basically garbage\nso I'm not totally surprised that different implementations appear to\ndisagree on the outcome.\n\nProposed action: we remove this test vector as it does not represent any\nreal world usage of the spec, or if we desperately need to verify NFC\nnormalisation I suggest using a different, more realistic test string, like\nZürich, or something written in Thai.\n\n\n\nTest 3:\n\n   - Passphrase ϓ␀𐐀💩 (\\u03D2\\u0301\\u0000\\U00010400\\U0001F4A9; GREEK\n   UPSILON WITH HOOK \u003chttp://codepoints.net/U+03D2\u003e, COMBINING ACUTE ACCENT\n   \u003chttp://codepoints.net/U+0301\u003e, NULL \u003chttp://codepoints.net/U+0000\u003e, DESERET\n   CAPITAL LETTER LONG I \u003chttp://codepoints.net/U+10400\u003e, PILE OF POO\n   \u003chttp://codepoints.net/U+1F4A9\u003e)\n   - Encrypted key:\n   6PRW5o9FLp4gJDDVqJQKJFTpMvdsSGJxMYHtHaQBF3ooa8mwD69bapcDQn\n   - Bitcoin Address: 16ktGzmfrurhbhi6JGqsMWf7TyqK9HNAeF\n   - Unencrypted private key (WIF):\n   5Jajm8eQ22H3pGWLEVCXyvND8dQZhiQhoLJNKjYXk9roUFTMSZ4\n   - *Note:* The non-standard UTF-8 characters in this passphrase should be\n   NFC normalized to result in a passphrase of0xcf9300f0909080f09f92a9 before\n   further processing\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20140715/e3dc3ed9/attachment.html\u003e"}
