How to draw
Draw shares A and C, calculate share D, then test recovery. Any two of the three shares recover the secret.
Before you start
- Choose how to calculate. You can calculate checksums, derive additional shares and recover the secret by hand using the worksheets in the codex32 illustrated guide, or with a compatible air-gapped device. Choose the approach that fits your threat model and that you can carry out and verify reliably.
- Check the pills. Lay out all 32 and compare them with the alphabet on the card. Each character must appear exactly once. B, I, O and 1 are excluded. A missing or duplicated pill changes the odds.
- Prepare three cards. This guide creates a 2-of-3 set. You draw A and C independently, then calculate D from them.
For pen and paper, we recommend 128 bits. That means 26 draws per share, with less writing and hand calculation. If a compatible air-gapped device will calculate the checksums and derive share D, you can choose 256 bits. Use the same size for every share in the set.
Keep secret material offline, including when calculating checksums. Do not enter your drawn characters into a web page.
Why draw A and C?
Drawing both shares supplies all the randomness needed for the set. Checksums, share D and the secret S are then calculated from those inputs. You can do the arithmetic on paper or use a compatible device without asking it to generate randomness.
You can also draw the complete secret S first and split it into shares. Splitting needs additional randomness, supplied by another drawn share or by the device doing the split.
1. Prepare the card
Use a record card for each of A, C and D. Fill in the headers before drawing. MS1 is already printed.
| Field | What to write |
|---|---|
| Threshold | 2 on every card |
| Identifier | The same four characters on every card |
| Index | A and C for the drawn shares, D for the derived share |
Write the threshold after MS1 in group 1, the identifier in group 2, and the index in the first box of group 3. Choose the identifier from the pill alphabet and use a different one for each new secret or set. It is a label, not part of your 26 or 52 draws.
Your first draw goes in the box marked START, the second box of group 3. Write one character per box, following the numbered groups down each column. Stop drawing at the mark for 26 or 52 draws. The checksum starts in the next box.
Write capitals throughout. Make 5 and S, 2 and Z, and 6 and G distinct. The character 0 is always a zero.
2. Mix, draw, record, return
- Mix. Put all 32 pills in an opaque bag and mix thoroughly.
- Draw. Take one pill out without looking. Read it with the orientation bar at the bottom.
- Record. Write the character in the next box on the card.
- Return the pill every time. Put it back before mixing for the next draw. All 32 pills must be in the bag for every draw.
Make 26 draws for 128 bits or 52 draws for 256 bits. Keep every draw, including repeated characters and patterns. Discarding results introduces bias.
Complete a separate drawing session for each of cards A and C. Each needs all 26 or 52 draws. You will calculate card D from those two.
3. Complete the checksum offline
Check the header and make sure every drawn character is legible. Calculate the checksum from the complete header and all drawn characters. Write its 13 characters immediately after your last draw. Keep all 26 or 52 drawn characters unchanged.
A checksum helps detect later copying errors. It cannot detect a character recorded wrongly before you calculated it.
5. Test recovery before funding
Recover the secret
Follow the recovery instructions for your chosen calculation method to reconstruct secret S from completed cards A and C. Check recovery using a different pair of shares, including D. One share alone cannot recover it.
Check the wallet
Checking the wallet fingerprint and a receive address is a separate step using compatible offline wallet software or an air-gapped signer. Confirm that it supports codex32 recovery before funding. A codex32 record encodes a BIP-32 master seed or share, not a seed-word list.
- Recover the wallet and record a reference. Follow your wallet or signer's instructions using a pair of shares or the reconstructed secret S. Note the wallet fingerprint and a receive address so you can compare them after recovery.
- Repeat from the written cards. Use a separate test wallet or recovery session with the same settings. Check that the fingerprint and receive address match the ones you noted.
- Store the records. Keep A, C and D in separate locations. Retain every character, including the header and checksum. Any retained copy of S gives access to the complete secret on its own.
Recovery checks that your records reproduce the same wallet. It does not prove that the draws were random.
What is in the record?
This example shows share A of a 2-of-3 set. The payload contains your drawn characters. The header identifies the set and the checksum helps detect errors.
48 characters in total for a 128-bit share, which is exactly 12 groups of four on the worksheet.
26 or 52 draws?
An independent, uniformly random draw from 32 pills contributes 5 bits. So 26 draws give 130 bits, of which 128 become seed bytes. For 52 draws, 256 of the 260 bits become seed bytes.
The remaining 2 or 4 bits are discarded only when decoding the payload into seed bytes. They stay in the written record and are included in the checksum, as specified by BIP-93.
These bit counts assume every pill has an equal chance of being drawn, independently of previous draws.