swansontec / dice2key

Converts dice rolls to a Bitcoin private key
10 stars 8 forks source link

Using a 100-sided die #2

Open IntegersOfK opened 7 years ago

IntegersOfK commented 7 years ago

Is there some way to use a 100-sided die to reduce the number of rolls required?

swansontec commented 7 years ago

Yes, this is possible. I wonder if it's a good idea, though.

A six-sided die roll produces about 2.58 bits of information, while a 100-sided die roll only produces about 6.64 bits. Even if you could find a 100-sided die, it would only reduce your number of rolls by about half (61%, actually). Since 6-sided dice are cheap and widely available, this hardly seems worthwhile.

If you still want the feature, I suppose I could make the number of sides adjustable.

IntegersOfK commented 7 years ago

Well many more people have a 20-sided, 10-sided, etc. but yes I am the proud owner of a 100-sided die and I basically came here looking for an excuse to use it for something. To be honest I'm just happy to learn this little fact you've explained above (and I would argue that 61% is still quite a reduction). Interesting!

It's not like people are knocking down my door to use my 100-sided die to create private keys. But it's something to think about, thanks either way the script is cool!