Blockchain & Digital Assets / HD Wallet Derivation
What you will do: Generate a BIP39 mnemonic, derive the seed with PBKDF2, see hardened versus non-hardened derivation, derive Bitcoin, Ethereum and Solana addresses, then read the quantum threat assessment.
Worked example: Generate Mnemonic gives 24 words from 32 bytes of entropy; Derive Accounts then shows a Bitcoin address at m/44'/0'/0'/0/0, an Ethereum address at m/44'/60'/0'/0/0 and a Solana address at m/44'/501'/0'/0'.
Runtime and privacy: The cryptographic exercise runs in this browser. Review the site privacy terms before entering sensitive material; use synthetic inputs for learning and evaluation.
For your role
- Developer / Engineer
- Generate Mnemonic starts the five steps: 256-bit entropy to a 24-word BIP39 phrase, a PBKDF2 seed, a master key and BIP32 or SLIP-0010 derivation to BTC, ETH and SOL addresses, with the PKCS#11 traces for each.
- Researcher / Academic
- The step table lists the sizes at each stage, from 256 bits of entropy to the derived addresses; use it to reproduce the derivation path and compare it with the classical and post-quantum key sizes.
Initializing SoftHSM…
C_Initialize → C_InitToken → C_OpenSession → C_Login
Compare a published BIP 32 example
Use the public test seed from BIP 32. Index 1 has a published expected key. For other non-hardened indices, the reference starts from the published parent public key.
The software-token path reads the sample child scalar into JavaScript to compute its compressed public key. The fixture uses publicly known keys.
1. Generate Mnemonic
Generate 256-bit entropy and convert it to a 24-word BIP39 mnemonic phrase. The mnemonic is the human-readable backup of your wallet — lose it and your funds are gone forever.
More entropy → more words (256 bits → 24 words). 128 bits → 12 words.
Cryptographically secure pseudorandom number generator (CSPRNG). Never use Math.random().
BIP39 appends 8 bits of SHA-256 checksum to the 256-bit entropy, giving 264 bits → 24 words of 11 bits each.
Each word encodes 11 bits. The wordlist is ordered so the first 4 letters uniquely identify each word.
Example: "abandon abandon … art". Store offline. Never type into any website.
| Field | Value | Description |
|---|---|---|
| Entropy size | 256 bits (32 bytes) | More entropy → more words (256 bits → 24 words). 128 bits → 12 words. |
| Entropy source | OpenSSL rand / SoftHSM3 C_GenerateRandom | Cryptographically secure pseudorandom number generator (CSPRNG). Never use Math.random(). |
| Checksum | SHA-256(entropy)[0:8 bits] | BIP39 appends 8 bits of SHA-256 checksum to the 256-bit entropy, giving 264 bits → 24 words of 11 bits each. |
| Wordlist | 2048 English words | Each word encodes 11 bits. The wordlist is ordered so the first 4 letters uniquely identify each word. |
| Output | 24-word mnemonic phrase | Example: "abandon abandon … art". Store offline. Never type into any website. |
Educational browser sandbox — mnemonics, seeds, and derived keys generated here are not for production wallets or real funds.
Production Tool Capabilities & Verification Requirements
What this sample check establishes: Demonstrates hierarchical deterministic (BIP-32 / BIP-39 / SLIP-0010) seed-to-child key derivation and how lattice/hash-based PQC keys require hardened seed-derivation trees.
Browser sandbox limitation (non-certification boundary): Browser-based derivation uses synthetic mnemonics; never enter real seed phrases into any browser tool.
What to require and test in your production tools:
- Hardened HMAC-SHA512 / KMAC256 seed derivation generating deterministic 32/64-byte child seeds (`d`, `z` for ML-KEM; `xi` for ML-DSA) inside an air-gapped hardware wallet or HSM.
- Recognition that non-hardened public-key parent-to-child derivation (BIP-32 xpub) does not directly translate to NIST FIPS 203/204/205 key generation.
- FIPS 140-3 Level 3+ HSM seed backup and M-of-N Shamir/threshold recovery for institutional custody.
Try it
- 1. Predict before you run it.
- 2. Run or change the tool above.
- 3. Explain what the result shows.
From 256 bits of entropy, how many BIP39 words does the mnemonic have?
Two recovery tools import the same fictional wallet seed but show different first receiving addresses. Which setting should the migration owner compare first?
Next step
Turn it into a plan: Deployment PlaybookThis tool practises the Digital Assets module, phase 5 (Pilots & Migration); Deployment Playbook produces a deliverable of that phase.
Related content
Next in Blockchain & Digital Assets