You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this report! This should be tightened up in the spec. I think until 2.0 is done with real native multi language support it makes sense to stick to single spaces. I'll change this.
The use of
strings.Fields
insplitMnemonicWords
allow more than one whitespace character between words.https://golang.org/pkg/strings/#Fields
The bip39 spec is not explicit about how words are to be separated.
The reference implementation uses a single space for the separator, after normalizing unicode to ascii:
https://github.com/trezor/python-mnemonic/blob/7d23efe34f3dd537996f31dae34f663207dac232/mnemonic/mnemonic.py#L153
The text was updated successfully, but these errors were encountered: