<div dir="ltr"><div dir="ltr"><div>&gt;  as it seems bad design to have to fix and maintain a wordlist for every language as the checksum depends on it.</div><div><br></div><div>From BIP39:</div><div><br></div><div>&gt; The conversion of the mnemonic sentence to a binary seed is completely independent from generating the sentence. This results in rather simple code; there are no constraints on sentence structure and clients are free to implement their own wordlists or even whole sentence generators, allowing for flexibility in wordlists for typo detection or other purposes.</div><div>&gt; </div><div>&gt; Although using a mnemonic not generated by the algorithm described in &quot;Generating the mnemonic&quot; section is possible, this is not advised and software must compute a checksum for the mnemonic sentence using a wordlist and issue a warning if it is invalid.</div><div><br></div><div>So BIP39 states &quot;no constraints on sentence structure and clients are free to implement their own wordlists or even whole sentence generators&quot; and yet at the same time one paragraph later &quot;this is not advised and software must compute a checksum for the mnemonic sentence using a wordlist and issue a warning if it is invalid&quot;...</div><div><br></div><div>My interpretation of this:</div><div><br></div><div>1. ChecksumCheck function attempts to 1. find the wordlist 2. calculate the checksum.</div><div>2. If it fails to find the wordlist, return false</div><div>3. If the checksum doesn&#39;t match return false</div><div>4. If ChecksumCheck returns false, &quot;issue a warning&quot; but do not block seed generation. &quot;We couldn&#39;t check if your phrase is correct... you&#39;re on your own&quot;</div><div><br></div><div>99.99% of implementing apps interpretation: (remember, error handling for userspace is not done by the BIP39 library, but the app that uses it)</div><div><br></div><div>1. Run ChecksumCheck</div><div>2. If False, hard fail, do not allow seed generation.</div><div><br></div><div>If more apps would implement to the word of the BIP39 spec, multiple languages make sense, but since reality is no one follows the spec (/the spec is way too open to interpretation) then expecting every app to load every language is unreasonable.</div><div><br></div><div>Electrum actually handles BIP39 recovery the way the BIP specifies. I can restore random strings if I want, and it warns me, and I can ignore it if I wish.</div><div><br></div><div><br></div><div>Anywho. The BIP39 multi-language feature is crucial for non-English speakers especially from Asia. Maybe northern Europeans have no problem with English word spelling, but watching a normal Japanese person write down their English mnemonic is painful.</div><div><br></div><div>One letter at a time, worried they wrote it wrong... still make mistakes... lose money because of it.</div><div><br></div><div>Whereas users of Copay etc. that support Japanese wordlist write down their seed easily, and I have never heard of a Japanese newbie complaining about &quot;but I&#39;m writing it just how I have it written down&quot; about their Japanese seed... only English.</div><div><br></div><div>Not trying to give anyone a hard time, just telling the facts: lack of localized words for recovery phrase causes more money loss than supporting it. (When push comes to shove, at the very least Electrum will always support their recovery because it lets you hash anything)</div><div><br></div><div>This is all anecdotal of course. Just sharing my experience evangelizing in Japan.</div><div><br></div><div>Thanks,</div><div>Jon</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">2018年11月8日(木) 21:16 SomberNight via bitcoin-dev &lt;<a href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a>&gt;:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do you specifically want to support changing the language of seed<br>
words, while keeping the bip32 root seed they generate unchanged?<br>
What is the usecase for this?<br>
<br>
You mention that BIP39 already supports a few different languages.<br>
While this is true, many (I would guess most!) wallets only<br>
support the English wordlist.<br>
There are doubts even from the authors of the BIP whether it was<br>
a good idea in the first place to support multiple languages [0].<br>
I don&#39;t find this surprising as it seems bad design to have to fix and<br>
maintain a wordlist for every language as the checksum depends on it.<br>
The supported wordlists are effectively a part of the specification,<br>
and every new list would just make that specification larger.<br>
<br>
If changing the language of seeds is not a requirement, then look<br>
into Electrum seeds. They are language/wordlist agnostic.<br>
<br>
Mnemonic Sentence =&gt; PBKDF2 =&gt; BIP-0032 Seed<br>
<br>
The bip32 seed is derived by hashing the normalized mnemonic, and the<br>
checksum is derived the same way but by using a different cheaper<br>
hash (single round of HMAC-SHA512; generation grinds until it matches<br>
a pattern) [1]. For example, &quot;9dk&quot; is a valid segwit electrum seed.<br>
<br>
<br>
[0]: <a href="https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-January/015507.html" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-January/015507.html</a><br>
[1]: <a href="http://docs.electrum.org/en/latest/seedphrase.html" rel="noreferrer" target="_blank">http://docs.electrum.org/en/latest/seedphrase.html</a><br>
<br>
<br>
&gt; Date: Wed, 7 Nov 2018 00:16:41 +0800<br>
&gt; From: Weiji Guo <a href="mailto:weiji.g@gmail.com" target="_blank">weiji.g@gmail.com</a><br>
&gt; Subject: [bitcoin-dev] BIP- &amp; SLIP-0039 -- better multi-language<br>
&gt; support<br>
&gt;<br>
&gt; Hello everyone,<br>
&gt;<br>
&gt; I just realized that BIP-0039 is language dependent. I was assuming the<br>
&gt; other way till I looked closer. The way the seed is derived from a BIP-0039<br>
&gt; entropy, as is shown below, depends on which language to generate the<br>
&gt; mnemonic sentence:<br>
&gt;<br>
&gt; Entropy &lt;=&gt; Mnemonic Sentence =&gt; PBKDF2 =&gt; BIP-0032 Seed<br>
&gt;<br>
&gt; Therefore when a user choose a non-English mnemonic code he or she is stuck<br>
&gt; with that language. Meanwhile only a few native languages are supported.<br>
&gt;<br>
&gt; SLIP-0039 does not solve this issue in a user friendly way by providing<br>
&gt; only an English wordlist. That&#39;s understandable as it aims to provide SSS<br>
&gt; capability. However those users who do not speak English or recognize<br>
&gt; English words will suffer.<br>
&gt;<br>
&gt; What I am trying to bring to attention of the community is that, no matter<br>
&gt; if we make a new version of BIP-0039, or a new BIP (with SSS support), or<br>
&gt; to enhance SLIP-0039, we really need to address this language issue.<br>
&gt;<br>
&gt; Here are what I propose:<br>
&gt;<br>
&gt; 1.  The mnemonic code should be only a representation of underlying entropy<br>
&gt;     or (pre) master secret, seed, whatever. In this way, the same seed/secret<br>
&gt;     could be displayed in English or in Chinese or other languages. Then there<br>
&gt;     could be 3rd party conversion tools to support translations in case any<br>
&gt;     wallet software or device does not support all specified languages. Now it<br>
&gt;     looks like:<br>
&gt;<br>
&gt;     Mnemonic Sentence &lt;=&gt; Entropy =&gt; PBKDF2 =&gt; BIP-0032 Seed<br>
&gt;<br>
&gt;<br>
&gt; 2. Given that only 8 languages are supported in BIP-0039, we should allow<br>
&gt; the seed/secret to be represented in decimal numbers, each ranging from 0<br>
&gt; to 2047. So those who cannot find a native language support yet having<br>
&gt; difficulty coping words in other languages could choose to just use numbers.<br>
&gt;<br>
&gt; So far I don&#39;t have a preference how this should be implemented. I&#39;d like<br>
&gt; to hear from community first.<br>
<br>
_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href="mailto:bitcoin-dev@lists.linuxfoundation.org" target="_blank">bitcoin-dev@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>-----------------<br></div><div>Jonathan Underwood</div><div>ビットバンク社 チーフビットコインオフィサー</div><div>-----------------</div><div><br></div><div>暗号化したメッセージをお送りの方は下記の公開鍵をご利用下さい。</div><div><br></div><div>指紋: 0xCE5EA9476DE7D3E45EBC3FDAD998682F3590FEA3</div></div></div></div></div></div>