Cryptography notes on Bitcoin wallets: how hierarchical deterministic (HD) wallets derive keys under BIP-32, and how BIP-39 mnemonic phrases seed them.