bip32_derive
Derive an HD child private key and its Ethereum address from a seed using a BIP-32/44 derivation path. Returns address, private key, public key, and chain code.
Instructions
Derive an HD child key and its Ethereum address from a seed along a BIP-32/44 path.
The master key comes from HMAC-SHA512("Bitcoin seed", seed); each path step derives a child via BIP-32 CKDpriv (hardened steps use the parent private key, normal steps its compressed public key). The Ethereum address is the last 20 bytes of keccak256(uncompressed pubkey), EIP-55 checksummed. Returns {path, depth, private_key, public_key, chain_code, address}; the derived child private_key IS returned (it is new output, not the seed), but the input seed is never echoed.
Example: bip32_derive(<64-byte seed hex>, "m/44'/60'/0'/0/0") -> {"address": "0x...", "private_key": "0x...", ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | BIP-32/44 derivation path, e.g. "m/44'/60'/0'/0/0" (the conventional Ethereum account-0 key). Use ' or h to mark a hardened step; "m" (or empty) yields the master key itself. | |
| seed | Yes | BIP-32 seed bytes (typically the 64-byte BIP-39 mnemonic-to-seed output), as hex or base64 per `input_format`. This is a SEED, not a mnemonic — derive the seed from words first. Never echoed back. | |
| input_format | No | How to decode `seed` to bytes: 'hex' (0x optional) or 'base64'. | hex |