Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: keatonatron on May 28, 2013, 04:25:24 PM



Title: Brainwallet.org Poetry
Post by: keatonatron on May 28, 2013, 04:25:24 PM
Hi all,

I've been playing around with the converters at brainwallet.org--pretty cool.

I'm curious about the "poetry" function. I've seen this format used with other services as well as a way to save a secret key that can be used to recover an account, etc.

What I can't find is a technical explanation of how the conversion works. Does anyone know? And is the idea behind it simply that it's easier to avoid typos when typing actual words?

Thanks  8)


Title: Re: Brainwallet.org Poetry
Post by: TalkingAntColony on May 28, 2013, 10:46:28 PM
From the source:

Code:
/*
    mnemonic.js : Converts between 4-byte aligned strings and a human-readable
    sequence of words. Uses 1626 common words taken from wikipedia article:
    http://en.wiktionary.org/wiki/Wiktionary:Frequency_lists/Contemporary_poetry
    Originally written in python special for Electrum (lightweight Bitcoin client).
    This version has been reimplemented in javascript and placed in public domain.
*/

So it converts every 4 characters to three words from that list.


Title: Re: Brainwallet.org Poetry
Post by: keatonatron on May 29, 2013, 03:23:42 AM
Aha! The only place I didn't think to look  ;D

Very interesting. This would be an easier way to type in private keys from a paper wallet, but I think it should be standardized or else the word list might change and render all your data useless. (Easy fix--print both the key and the 'easy to type' real word version)


Title: Re: Brainwallet.org Poetry
Post by: threeip on July 27, 2013, 08:04:16 PM
Aha! The only place I didn't think to look  ;D

Very interesting. This would be an easier way to type in private keys from a paper wallet, but I think it should be standardized or else the word list might change and render all your data useless. (Easy fix--print both the key and the 'easy to type' real word version)

The current wordlist and function is here -> http://pastebin.com/4HfuabMb

We could make it a standard right now  8)


Title: Re: Brainwallet.org Poetry
Post by: Aleksei Richards on July 29, 2013, 07:58:10 AM
I think it's already a de-facto standard. We're using it on http://carbonwallet.com/

See https://github.com/carbonwallet/carbonwallet.github.io/blob/master/extjs/mnemonic.js