Mike Hearn [ARCHIVE] on Nostr: 📅 Original date posted:2014-07-15 📝 Original message:Yes, we know, Andreas' ...
📅 Original date posted:2014-07-15
📝 Original message:Yes, we know, Andreas' code is indeed doing normalisation.
However it appears the output bytes end up being different. What I get back
is:
cf9300*01*303430300166346139
vs
cf9300*f0*909080f09f92a9
from the spec.
I'm not sure why. It appears this is due to the character from the astral
planes. Java is old and uses 16 bit characters internally - it wouldn't
surprise me if there's some weirdness that means it doesn't/won't support
this kind of thing.
I recommend instead that any implementation that wishes to be compatible
with JVM based wallets (I suspect Android is the same) just refuse any
passphrase that includes characters outside the BMP. At least unless
someone can find a fix. I somehow doubt this will really hurt anyone.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20140715/fe65167b/attachment.html>
Published at
2023-06-07 15:23:51Event JSON
{
"id": "7c7f104b8ddac7f2b43a9506344d4c048953ef0dcecf2e4afc5344f49f446be7",
"pubkey": "f2c95df3766562e3b96b79a0254881c59e8639f23987846961cf55412a77f6f2",
"created_at": 1686151431,
"kind": 1,
"tags": [
[
"e",
"60726055f5690f49a0698605fd9e440f1a7b0fbf2e702b7f0382a84f86474ca9",
"",
"root"
],
[
"e",
"40ef6f39180802ab996cf8dbc4c1cf60c0b02932bb8bdb5258a5ff29da766797",
"",
"reply"
],
[
"p",
"55c4e4dcc50ae49525ece9c1ffe1f7aaf0c153bdca59f64cbc01c4a840607abc"
]
],
"content": "📅 Original date posted:2014-07-15\n📝 Original message:Yes, we know, Andreas' code is indeed doing normalisation.\n\nHowever it appears the output bytes end up being different. What I get back\nis:\n\ncf9300*01*303430300166346139\n\nvs\n\ncf9300*f0*909080f09f92a9\n\nfrom the spec.\n\nI'm not sure why. It appears this is due to the character from the astral\nplanes. Java is old and uses 16 bit characters internally - it wouldn't\nsurprise me if there's some weirdness that means it doesn't/won't support\nthis kind of thing.\n\nI recommend instead that any implementation that wishes to be compatible\nwith JVM based wallets (I suspect Android is the same) just refuse any\npassphrase that includes characters outside the BMP. At least unless\nsomeone can find a fix. I somehow doubt this will really hurt anyone.\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20140715/fe65167b/attachment.html\u003e",
"sig": "d3978ba726197b1ab0f312dac86ac0c782f8f01151c22ff3feca9319278d00a16cd251e7daf00265ddf4b639fbf1c57766a57f6fc2b58402b958cca25a0aa64d"
}