{"type":"rich","version":"1.0","author_name":"npub1836zrd49hyr9aad6tvgng94uyy4r3xjcs5lkdza0ld9g5p8jkd0speeux6","author_url":"https://nostr.ae/npub1836zrd49hyr9aad6tvgng94uyy4r3xjcs5lkdza0ld9g5p8jkd0speeux6","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2015-03-12\n📝 Original message:@Neill, Indeed supplying entropy is necessary for testing etc, that's the main reason why I put this in my .NET implementation, the test vectors require us to supply entropy and build the mnemonic from the supplied wordlist and you are correct that changes to the word list will null and void the test vectors. Also it allows us to do fun things like swap between languages so one entropy set can have many seeds based on many languages etc, just novel little things like that. I'm not at all against a standard wordlist. The point I want to get across is that people seem to think that BIP39 is restricted by its word list but not at all. As long as you give a BIP39 implementation 12 words or more (in 3 word increments) it will always derive the same seed bytes, independent of any word list and this is the most important message to realise.\n\n@Thomas V if you must record a version, why don't you just put an integer at the end of your mnemonic or something? I can't understand why you have disregarded BIP39 when designing Electrum 2.0?  12 - 24 words plus a version integer tacked on the end, tell the user to omit the version integer if they want to import to multibit HD or whatever, job done!\n\nI really think you need to rethink the use of BIP39 with Electrum Thomas! If you want to maintain a version field and/or date independent of the BIP39 spec then do so because at least the seed can still be recreated from anyone else utilising BIP39!!!\n\nThy\n\n\u003e Date: Thu, 12 Mar 2015 06:51:37 -0500\n\u003e From: neillm at thecodefactory.org\n\u003e To: thashiznets at yahoo.com.au\n\u003e CC: Bitcoin-development at lists.sourceforge.net\n\u003e Subject: Re: [Bitcoin-development] Electrum 2.0 has been tagged\n\u003e \n\u003e \n\u003e Ok, I see your point here, and I was referring to rebuilding from\n\u003e entropy -- which as you noted is not a real world usage.  It is a\n\u003e useful implementation test though and at the very least the existing\n\u003e test vectors would need to be regenerated with each word list change.\n\u003e \n\u003e I recently added BIP39 to libbitcoin and our implementation would fail\n\u003e with an arbitrarily new word list because we validate the user\n\u003e provided word list before converting it to a seed (i.e. we check that\n\u003e the encoded entropy/checksum line up and warn the user if that's not\n\u003e the case to distinguish a rubbish word list from a BIP39 mnemonic --\n\u003e as referenced in the BIP).  You're correct that we could use rubbish\n\u003e words, but at the moment it's not allowed there.  By removing that\n\u003e validating 'restriction', I agree with you that word lists have no\n\u003e need to be fixed.  But realistically, we still don't allow completely\n\u003e arbitrary words to be used because I don't see the word lists changing\n\u003e too often, nor implementations storing word lists of all words and\n\u003e languages.\n\u003e \n\u003e Thanks for clarifying,\n\u003e -Neill.\n\u003e \n\u003e On Thu, Mar 12, 2015 at 04:21:59AM +0000, Thy Shizzle wrote:\n\u003e \u003e \"I agree that it's true that a static wordlist is\n\u003e \u003e  required once people have started using BIP39 for anything real and\n\u003e \u003e  changing the word lists will invalidate any existing mnemonics\"\n\u003e \u003e ^ This is incorrect I think Neill, the reason is that the only thing that happens when you change the wordlist is that entropy points to different words. But remember, entropy is disposed. Yes in my code I allow for the keeping of entropy etc, it also lets me \"hot swap\" between different language wordlists etc but in real world implementation the entropy is forgotten and not stored. So changing the wordlist merely allows new mnemonic phrases to be generated but it has a nil impact on previously generated mnemonics UNLESS you are trying to rebuild from entropy but you wouldn't do that. You would be rebuilding from the Mnemonic in real world scenario. You really can have a word list of total rubbish in BIP39 as long as it is 2048 words long that is all! If you input the mnemonic made out of rubbish words so for e.g \"uyuy jkjasd sdsd sdsdd yuuyu sdsds iooioi sdasds uyuyuy sdsdsd tyyty rwetrtr\" and no matter what BIP39 implementation you put it in, it will always generate the same seed bytes thus allowing for complete and universal seed derivation without any reliance on word list. The word list is merely to generate a mnemonic, after that it has no role in seed generation so you can change it at anytime and it will never effect future mnemonics.\n\u003e \u003e \n\u003e \u003e On Thu, Mar 12, 2015 at 02:16:38AM +0000, Thy Shizzle wrote:\n\u003e \u003e \u003e That's disappointing the Electrum 2.0 doesn't use BIP39.\n\u003e \u003e \n\u003e \u003e Agreed, but I don't know the full background on this.\n\u003e \u003e \n\u003e \u003e \u003e Changing the wordlist in the future has ZERO effect on derived seed, whatever mnemonic you provide will always generate the same seed, BIP39 is not mapping the words back to numbers etc to derive seed.\n\u003e \u003e \n\u003e \u003e That's true for generating new mnemonics (i.e. same entropy can\n\u003e \u003e generate any combinations of words), but not for converting a mnemonic\n\u003e \u003e to a seed (i.e. a specific wordlist/passphrase should always generate\n\u003e \u003e the same seed).  I agree that it's true that a static wordlist is\n\u003e \u003e required once people have started using BIP39 for anything real and\n\u003e \u003e changing the word lists will invalidate any existing mnemonics (unless\n\u003e \u003e your 'new' wordlist simply substitutes one word for another and the\n\u003e \u003e index mapping is made public ... which means it's not really an\n\u003e \u003e arbitrary word list).\n\u003e \u003e \n\u003e \u003e \u003e Version is something that can be dealt with after the fact, hopefully standardised (curious why didn't you work with the BIP39 to insert version instead of do something different to BIP39?)\n\u003e \u003e \u003e So most of what you are suggesting as problems are not.\n\u003e \u003e \n\u003e \u003e I don't see how this can work given the BIP39 spec as it is today\n\u003e \u003e (there's simply no room for a version in the bits).  I do think\n\u003e \u003e versioning would be nice, but as of now, I'm in the camp that thinks\n\u003e \u003e complete wallet interoperability is a bit of a myth -- so long as you\n\u003e \u003e can fundamentally move into/out of wallets at will.\n\u003e \u003e \n\u003e \u003e -Neill.\n\u003e \u003e \n\u003e \u003e \u003e As for the common words between languages, I have discussed this with the provider of the Chinese wordlists as they shared some words between simplified and traditional, but I found it easy to look for a word in the mnemonic that is unique to that language/wordlist and so straight away you can determine the language, remembering you get minimum 12 goes at doing that :)\n\u003e \u003e \u003e Also then I asked myself, do we really care about detecting the language? Probably not because we don't need to use the wordlist ever again after creation, we literally accept the mnemonic, normalise it then hash it into a seed. From what I'm reading, Electrum 2.0 really should have BIP39, it would take almost no effort to put it in and I think you should do that :) I don't have any interest in BIP39 other than it being a standard. I think TREZOR may have an interest in it?\n\u003e \u003e \u003e Thomas V:\n\u003e \u003e \u003e \"Thanks Mike, and sorry to answer a bit late; it has been a busy couple\n\u003e \u003e \u003e of weeks.\n\u003e \u003e \u003e \n\u003e \u003e \u003e You are correct, a BIP39 seed phrase will not work in Electrum, and vice\n\u003e \u003e \u003e versa. It is indeed unfortunate. However, I believe BIP39 should not be\n\u003e \u003e \u003e followed, because it reproduces two mistakes I did when I designed the\n\u003e \u003e \u003e older Electrum seed system. Let me explain.\n\u003e \u003e \u003e \n\u003e \u003e \u003e The first problem I have with BIP39 is that the seed phrase does not\n\u003e \u003e \u003e include a version number.\n\u003e \u003e \u003e \n\u003e \u003e \u003e Wallet development is still in an exploratory phase, and we should\n\u003e \u003e \u003e expect even more innovation in this domain. In this context, it is\n\u003e \u003e \u003e unwise to make decisions that prevent future innovation.\n\u003e \u003e \u003e \n\u003e \u003e \u003e However, when we give a seed phrase to users, we have a moral obligation\n\u003e \u003e \u003e to keep supporting this seed phrase in future versions. We cannot simply\n\u003e \u003e \u003e announce to Electrum users that their old seed phrase is not supported\n\u003e \u003e \u003e anymore, because we created a new version of the software that uses a\n\u003e \u003e \u003e different derivation. This could lead to financial losses for users who\n\u003e \u003e \u003e are unaware of these technicalities. Well, at least, that is how I feel\n\u003e \u003e \u003e about it.\n\u003e \u003e \u003e \n\u003e \u003e \u003e BIP39 and Electrum v2 have a very different ways of handling future\n\u003e \u003e \u003e innovation. Electrum v2 seed phrases include an explicit version number,\n\u003e \u003e \u003e that indicates how the wallet addresses should be derived. In contrast,\n\u003e \u003e \u003e BIP39 seed phrases do not include a version number at all. BIP39 is\n\u003e \u003e \u003e meant to be combined with BIP43, which stipulates that the wallet\n\u003e \u003e \u003e structure should depend on the BIP32 derivation path used for the wallet\n\u003e \u003e \u003e (although BIP43 is not followed by all BIP39 compatible wallets). Thus,\n\u003e \u003e \u003e innovation in BIP43 is allowed only within the framework of BIP32. In\n\u003e \u003e \u003e addition, having to explore the branches of the BIP32 tree in order to\n\u003e \u003e \u003e determine the type of wallet attached to a seed might be somewhat\n\u003e \u003e \u003e inefficient.\n\u003e \u003e \u003e \n\u003e \u003e \u003e The second problem I see with BIP39 is that it requires a fixed\n\u003e \u003e \u003e wordlist. Of course, this forbids innovation in the wordlist itself, but\n\u003e \u003e \u003e that's not the main problem. When you write a new standard, it is\n\u003e \u003e \u003e important to keep this standard minimal, given the goal you want to\n\u003e \u003e \u003e achieve. I believe BIP39 could (and should) have been written without\n\u003e \u003e \u003e including the wordlist in the standard.\n\u003e \u003e \u003e \n\u003e \u003e \u003e There are two ways to derive a master key from a mnemonic phrase:\n\u003e \u003e \u003e  1. A bidirectional mapping between words and numbers, as in old\n\u003e \u003e \u003e Electrum versions. Pros: bidirectional means that you can do Shamir\n\u003e \u003e \u003e secret sharing of your seed. Cons: It requires a fixed wordlist.\n\u003e \u003e \u003e  2. Use a hash of the seed phrase (pbkdf). Pros: a fixed wordlist is not\n\u003e \u003e \u003e required. Cons: the mapping isn't bidirectional.\n\u003e \u003e \u003e \n\u003e \u003e \u003e Electrum v1 uses (1). Electrum v2 uses (2).\n\u003e \u003e \u003e \n\u003e \u003e \u003e Early versions of BIP39 used (1), and later they switched to (2).\n\u003e \u003e \u003e However, BIP39 uses (2) only in order to derive the wallet keys, not for\n\u003e \u003e \u003e its checksum. The BIP39 checksum uses (1), and it does requires a fixed\n\u003e \u003e \u003e wordlist. This is just plainly inconsistent. As a result, you have\n\u003e \u003e \u003e neither wordlist flexibility, nor Shamir secret sharing.\n\u003e \u003e \u003e \n\u003e \u003e \u003e Having a fixed wordlist is very unfortunate. First, it means that BIP39\n\u003e \u003e \u003e will probably never leave the 'draft' stage, until all languages of the\n\u003e \u003e \u003e world have been added. Second, once you add a wordlist for a new\n\u003e \u003e \u003e language, you cannot change it anymore, because it will break existing\n\u003e \u003e \u003e seed phrases; therefore you have to be extremely careful in the way you\n\u003e \u003e \u003e design these wordlists. Third, languages often have words in common.\n\u003e \u003e \u003e When you add a new language to the list, you should not use words\n\u003e \u003e \u003e already used by existing wordlists, in order to ensure that the language\n\u003e \u003e \u003e can be detected. It leads to a first come first served situation, that\n\u003e \u003e \u003e might not be sustainable in the future.\n\u003e \u003e \u003e \n\u003e \u003e \u003e In order to support the old Electrum v1 seeds, all future versions of\n\u003e \u003e \u003e Electrum will have to include the old wordlist. In addition, when\n\u003e \u003e \u003e generating new seed phrases, Electrum now has to avoid collisions with\n\u003e \u003e \u003e old seed phrases, because the old ones did not have a version number.\n\u003e \u003e \u003e This is painful enough, I will not repeat the same errors twice.\n\u003e \u003e \u003e \n\u003e \u003e \u003e Electrum v2 derives both its private keys and its checksum/version\n\u003e \u003e \u003e number using a hash of the seed phrase. This means that wordlists can be\n\u003e \u003e \u003e added and modified in the future, without breaking existing seed\n\u003e \u003e \u003e phrases. It also means that it will be very easy for other wallets to\n\u003e \u003e \u003e support Electrum seedphrases: it requires about 20 lines of code, and no\n\u003e \u003e \u003e wordlist is required.\"\n\u003e \u003e \u003e \n\u003e \u003e \u003e \n\u003e \u003e \u003e Thomas\n\u003e \u003e \u003e \n\u003e \u003e \u003e \n\u003e \u003e \u003e Le 02/03/2015 16:37, Mike Hearn a écrit :\n\u003e \u003e \u003e \u003e Congrats Thomas! Glad to see Electrum 2 finally launch.\n\u003e \u003e \u003e \u003e \n\u003e \u003e \u003e \u003e \n\u003e \u003e \u003e \u003e\u003e * New seed derivation method (not compatible with BIP39).\n\u003e \u003e \u003e \u003e \n\u003e \u003e \u003e \u003e \n\u003e \u003e \u003e \u003e Does this mean a \"12 words\" wallet created by Electrum won't work if\n\u003e \u003e \u003e \u003e imported into some other wallet that supports BIP39? Vice versa? This seems\n\u003e \u003e \u003e \u003e unfortunate. I guess if seeds are being represented with 12 words\n\u003e \u003e \u003e \u003e consistently, people will expect them to work everywhere.\n\u003e \u003e \u003e \u003e \n\u003e \u003e \u003e \n\u003e \u003e \u003e ------------------------------------------------------------------------------\n\u003e \u003e \u003e Dive into the World of Parallel Programming The Go Parallel Website, sponsored\n\u003e \u003e \u003e by Intel and developed in partnership with Slashdot Media, is your hub for all\n\u003e \u003e \u003e things parallel software development, from weekly thought leadership blogs to\n\u003e \u003e \u003e news, videos, case studies, tutorials and more. Take a look and join the \n\u003e \u003e \u003e conversation now. http://goparallel.sourceforge.net/\n\u003e \u003e \u003e _______________________________________________\n\u003e \u003e \u003e Bitcoin-development mailing list\n\u003e \u003e \u003e Bitcoin-development at lists.sourceforge.net\n\u003e \u003e \u003e Bitcoin-development --\n\u003e \u003e \u003e |   |\n\u003e \u003e \u003e |   |   |   |   |   |\n\u003e \u003e \u003e | Bitcoin-development --To see the collection of prior postings to the list, visit the Bitcoin-development Archives. |\n\u003e \u003e \u003e |  |\n\u003e \u003e \u003e | View on lists.sourceforge.net | Preview by Yahoo |\n\u003e \u003e \u003e |  |\n\u003e \u003e \u003e |   |\n\u003e \u003e \u003e \n\u003e \u003e \u003e   \n\u003e \u003e \u003e \n\u003e \u003e \u003e  \n\u003e \u003e \u003e    \n\u003e \u003e \n\u003e \u003e \u003e ------------------------------------------------------------------------------\n\u003e \u003e \u003e Dive into the World of Parallel Programming The Go Parallel Website, sponsored\n\u003e \u003e \u003e by Intel and developed in partnership with Slashdot Media, is your hub for all\n\u003e \u003e \u003e things parallel software development, from weekly thought leadership blogs to\n\u003e \u003e \u003e news, videos, case studies, tutorials and more. Take a look and join the \n\u003e \u003e \u003e conversation now. http://goparallel.sourceforge.net/\n\u003e \u003e \n\u003e \u003e \u003e _______________________________________________\n\u003e \u003e \u003e Bitcoin-development mailing list\n\u003e \u003e \u003e Bitcoin-development at lists.sourceforge.net\n\u003e \u003e \u003e https://lists.sourceforge.net/lists/listinfo/bitcoin-development\n\u003e \n\u003e ------------------------------------------------------------------------------\n\u003e Dive into the World of Parallel Programming The Go Parallel Website, sponsored\n\u003e by Intel and developed in partnership with Slashdot Media, is your hub for all\n\u003e things parallel software development, from weekly thought leadership blogs to\n\u003e news, videos, case studies, tutorials and more. Take a look and join the \n\u003e conversation now. http://goparallel.sourceforge.net/\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 \t\t \t   \t\t  \n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150312/d0a28c36/attachment.html\u003e"}
