{"type":"rich","version":"1.0","author_name":"npub18gjvug29c4yg46lmplq38e75gg6wn5mn8taytckcsr4jt8p74h3s5knkzl","author_url":"https://nostr.ae/npub18gjvug29c4yg46lmplq38e75gg6wn5mn8taytckcsr4jt8p74h3s5knkzl","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2014-07-15\n📝 Original message:If the user creates a password on an iOS device with an astral\ncharacter and then can't enter that password on a JVM wallet, that\nsucks. If JVMs really can't support unicode NFC then that's a strong\ncase to limit the spec to the subset of unicode that all popular\nplatforms can support, but it sounds like it might just be a JVM\nstring library bug that could hopefully be reported and fixed. I get\nthe same result as in the test case using apple's\nCFStringNormalize(passphrase, kCFStringNormalizationFormC);\n\nAaron Voisine\nbreadwallet.com\n\n\nOn Tue, Jul 15, 2014 at 11:20 AM, Mike Hearn \u003cmike at plan99.net\u003e wrote:\n\u003e Yes, we know, Andreas' code is indeed doing normalisation.\n\u003e\n\u003e However it appears the output bytes end up being different. What I get back\n\u003e is:\n\u003e\n\u003e cf930001303430300166346139\n\u003e\n\u003e vs\n\u003e\n\u003e cf9300f0909080f09f92a9\n\u003e\n\u003e from the spec.\n\u003e\n\u003e I'm not sure why. It appears this is due to the character from the astral\n\u003e planes. Java is old and uses 16 bit characters internally - it wouldn't\n\u003e surprise me if there's some weirdness that means it doesn't/won't support\n\u003e this kind of thing.\n\u003e\n\u003e I recommend instead that any implementation that wishes to be compatible\n\u003e with JVM based wallets (I suspect Android is the same) just refuse any\n\u003e passphrase that includes characters outside the BMP. At least unless someone\n\u003e can find a fix. I somehow doubt this will really hurt anyone.\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\n\u003e"}
