Skip to content
COLDCARD Security Update Fixed firmware is available. Check if you need to migrate your seed. Learn more

Verifying Dice Roll Math

Current Seed Guidance

This page documents the advanced, reproducible Dice Rolls Only workflow. The recommended defense-in-depth path for most new wallets is fixed firmware and the standard Dice Rolls option, which combines device-generated randomness with private physical dice rolls. For an existing seed that may fall within the current firmware guidance, use the security status and its dedicated migration guide to evaluate the exact workflow and dice conditions. If you used fewer than the stated number of fair, independent, private rolls or are uncertain how the seed was generated, follow the migration guidance.

Background#

Video: COLDCARD Dice Rolls seed entropy

You have the option of creating the seed value for your Coldcard by rolling a six-sided dice (D6). Go to: New Seed Words > Advanced, and then choose 12 Word Dice Roll or 24 Word Dice Roll (for more detailed steps see here). The COLDCARD warns that no hardware-generated randomness will be included and that the final hash shown while rolling is secret. Press /ENTER to continue or X/CANCEL to exit.

Enter each result from a fair six-sided die as it is rolled. Keep the full sequence private and do not record, photograph, or type it into a computer.

The Final Hash Can Recreate the Wallet

Anyone with the dice rolls or final hash can recreate your seed words and steal the funds. Never enter dice rolls intended for an actual funded wallet into a computer or connected device, and keep the COLDCARD screen hidden from people and cameras. Use a separate disposable set of rolls for verification, then generate the real wallet with a fresh set that never leaves the COLDCARD.

This makes the seed independent of the COLDCARD's built-in random-number path and lets you reproduce the calculation. The resulting seed is only as strong as the fair, private, and sufficient dice sequence used to create it. This is a seed-creation workflow, not an import of an existing private key.

Number of Rolls#

Please note that each roll of a D6 dice provides only 2.585 bits of additional entropy (randomness). Therefore, for 128-bit security, which we consider the absolute minimum, you need 50 rolls, and for 256-bits of security, 99 rolls. The Coldcard does not limit the number of rolls, but will warn you if you apply too few rolls.

After the seed backup has been checked, use a strong, unique BIP-39 passphrase for any wallet intended to hold an amount whose loss would be materially harmful to you. Back up the passphrase separately, record the passphrase wallet's fingerprint, and test recovery before depositing funds.

Duplicating Our Math#

But what if we lied and still used some tricky way to pick a non-random but random-looking value for the seed?

Video: Dice Rolls on Tails

You may have noticed the first screen always looks like this:

zero rolls

The seed value is calculated as SHA256 over the rolls, when expressed as an ASCII string. Therefore, you will always see e3b0c... 27ae4... b855 as a starting value, since that's SHA256 over an empty string. You can calculate other values using Python as follows:

>>> from hashlib import sha256
>>> sha256(b'').hexdigest()
'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
>>> sha256(b'123456').hexdigest()
'8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92'

Values can also be calculated from the command line (shell) of most computers using one of the following commands:

$ echo -n 123456 | sha256sum
8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92
$ echo -n 123456 | openssl sha256
(stdin) = 8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92

The ideal environment to perform this checking is a computer running Tails - The Amnesic Incognito Live System, preferable without any network connection and no hard drives. Do not use your actual dice rolls on a normal desktop system as that will completely comprise the security of your Coldcard!

You may be worried that this hex number shown on the Coldcard is not honestly converted into the seed words. To check that we are applying BIP-39 correctly, you can use this simple python3 program: rolls.py or rolls12.py for 12 word seeds.

$ echo 123456 | python3 rolls.py
8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92

WARNING: Input is only 15 bits of entropy

   1: mirror
   2: reject
   3: rookie
   4: talk
   5: pudding
   6: throw
   7: happy
   8: era
   9: myth
  10: already
  11: payment
  12: own
  13: sentence
  14: push
  15: head
  16: sting
  17: video
  18: explain
  19: letter
  20: bomb
  21: casual
  22: hotel
  23: rather
  24: garment


$ echo 123456 | python3 rolls12.py
8d969eef6ecad3c29a3a629280e686cf

WARNING: Input is only 15 bits of entropy

   1: mirror
   2: reject
   3: rookie
   4: talk
   5: pudding
   6: throw
   7: happy
   8: era
   9: myth
  10: already
  11: payment
  12: owner

As you can see, it shows the hash (which you can cross verify as above with other command-line tools) and then shows the corresponding BIP-39 mnemonic words.

Again, a Tails system is ideal for this verification process.

  1. Get a copy of rolls.py (or rolls12.py for 12 word seeds) onto the Tails system.

  2. Run your dice rolls through rolls.py (or rolls12.py):

    • In Tails, open "Applications > System Tools > Terminal".

    • Type this sequence of commands:

$ cd "Tor Browser"
$ ls
  • You should see the rolls.py (or rolls12.py) program you downloaded already. If you used some other means to get it into your Tails system, go to the directory where it's located.

  • Further Internet access or write access to any media is not required or desired past this point.

  • Type this:

$ echo 123456 | python3 rolls.py
# or
$ echo 123456 | python3 rolls12.py
  • It should print the hash and seed words shown above (8d96...6c92 and mirror .. garment).

  • Repeat but using the dice rolls you provided to Coldcard. Both should arrive at the same set of seed words.


Last update: August 31, 2026