Browse Source

Add entropy description

pull/1/head
Luke Childs 6 years ago
parent
commit
ba50c1e581
  1. 64
      website/index.html
  2. 15
      website/style.css

64
website/index.html

@ -27,9 +27,71 @@
<section class="description">
<div class="wrapper">
<h3>Very entropy, such secure.</h3>
<h3>Wut?</h3>
<p>Doge seeds are <strong>cryptographically secure</strong> mnemonic seed phrases with added dankness. The first four words will be a randomly generated Doge-like sentence.</p>
<p>The seed phrases are <strong>fully valid checksummed BIP39 seeds</strong>. They can be used with any cryptocurrency and can be imported into any BIP39 compliant wallet.</p>
<h3>Very entropy, such secure.</h3>
<p>The mnemonic is seeded by a cryptographically secure random number generator. However there is a slight reduction in entropy due to the introduction of the doge-isms. A doge seed has about 19.415 fewer bits of entropy than a standard BIP39 seed of equivalent length.</p>
<p>Each word in a standard BIP39 mnemonic has 2048 possible values (11 bits of entropy). However a 1 bit checksum is added for every 3 words. These checksum bits reduce the entropy of the last word. That can be expressed as:</p>
<div align="center">
<p>
<img alt="S = log2(2048<sup>W</sup>) - (W/3)" src="https://latex.codecogs.com/svg.latex?S&amp;space;=&amp;space;log2(2048%5E%7BW%7D)&amp;space;-&amp;space;%5Cfrac%7BW%7D%7B3%7D" style="max-width:100%;">
</p>
<p>
<sup>Where S is entropy and W is number of words</sup>
</p>
</div>
<p>A doge seed is the same apart from two changes. The first word is one of the three words "much", "such", or "very". The third word is one of two words from the previous selection that wasn't chosen for the first word. That can be expressed as:</p>
<div align="center">
<p>
<img alt="S = log2(2048<sup>W-2</sup>) + log2(3) + log2(2) - (W/3)" src="https://latex.codecogs.com/svg.latex?S&amp;space;=&amp;space;log2(2048%5E%7BW-2%7D)&amp;space;+&amp;space;log2(3)&amp;space;+&amp;space;log2(2)&amp;space;-&amp;space;%5Cfrac%7BW%7D%7B3%7D" style="max-width:100%;">
</p>
<p>
<sup>Where S is entropy and W is number of words</sup>
</p>
</div>
<p>You can compare the entropy against standard BIP39 seeds in the table below.</p>
<div align="center">
<table class="entropy-table">
<thead>
<tr>
<th align="center">Word Count</th>
<th align="center">Standard BIP39 Entropy</th>
<th align="center">Doge Seed Entropy</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">12</td>
<td align="center">128 bits</td>
<td align="center">108.585 bits</td>
</tr>
<tr>
<td align="center">15</td>
<td align="center">160 bits</td>
<td align="center">140.585 bits</td>
</tr>
<tr>
<td align="center">18</td>
<td align="center">192 bits</td>
<td align="center">172.585 bits</td>
</tr>
<tr>
<td align="center">21</td>
<td align="center">224 bits</td>
<td align="center">204.585 bits</td>
</tr>
<tr>
<td align="center">24</td>
<td align="center">256 bits</td>
<td align="center">236.585 bits</td>
</tr>
</tbody>
</table>
</div>
<p>Although 108.585 bits (12 word doge seed) is a lot of entropy, a Bitcoin private key has 128 bits of entropy, so you probably want your BIP39 seed to have more than or equal that amount to avoid reducing overall security.</p>
<p><strong>TL;DR:</strong> If for some insane reason you actually use this over a standard BIP39 seed, it would probably be best to use 15 words or more.</p>
</div>
</section>

15
website/style.css

@ -131,3 +131,18 @@ body {
.description {
padding: 1em 0;
}
table.entropy-table {
border-spacing: 0;
border-collapse: collapse;
}
table.entropy-table th,
table.entropy-table td {
border: 1px solid rgba(0, 0, 0, 0.4);
padding: 6px 13px;
}
table.entropy-table tr:nth-child(even) {
background-color: rgba(255, 255, 255, 0.4);
}

Loading…
Cancel
Save