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