Skip to content

fix: use ideographic spaces for Japanese mnemonics#90

Open
ethicnology wants to merge 2 commits intorust-bitcoin:masterfrom
ethicnology:japanese-ideographic-spaces
Open

fix: use ideographic spaces for Japanese mnemonics#90
ethicnology wants to merge 2 commits intorust-bitcoin:masterfrom
ethicnology:japanese-ideographic-spaces

Conversation

@ethicnology
Copy link

Hi, I noticed that when generating a Japanese mnemonic, the output sentence does not use ideographic spaces, and the library is unable to parse it correctly while they are recommended in bip39 Japanese section

Developers implementing phrase generation or checksum verification must separate words using ideographic spaces / accommodate users inputting ideographic spaces. (UTF-8 bytes: 0xE38080; C/C+/Java: "\u3000"; Python: u"\u3000")

I've also added some test vectors used for Japanese mnemonics

@tnull tnull self-requested a review November 6, 2025 12:49
@ethicnology
Copy link
Author

@elsirion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant