Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article covers SLIP0010, a proposal for HD wallets that securely generate and manage curve-specific keys from a single seed to support different cryptographic schemes.
This article translates, summarizes, and supplements the material below.
I have also covered various other EIPs.
Overview
SLIP0010 (Slip Improvement Proposal 0010) defines a common mechanism for generating and deriving private and public key pairs in hierarchical deterministic (HD) wallets using multiple elliptic curves (secp256k1, NIST P-256, ed25519, and curve25519).
An HD wallet improves consistency and convenience in key management by hierarchically deriving multiple key pairs from a single master key. Bitcoin's BIP0032 defined HD wallet derivation for secp256k1, the curve used by Bitcoin. SLIP0010 extends this mechanism to other curves.
This enables secure, consistent key management even in applications that require different cryptographic algorithms.
Motivation
Hardware wallets such as Trezor need to support not only cryptocurrencies like Bitcoin but also other cryptographic applications such as SSH and GPG. These applications use curves such as NIST P-256 and ed25519 in addition to secp256k1.
However, reusing the same private key across different curves is undesirable from a security perspective. Sharing a private key across different applications may increase the risk of key exposure and broaden the impact of an attack.
A common mechanism for reliably generating distinct key pairs for each application or curve is therefore needed. SLIP0010 was proposed to address this requirement.
By generalizing the BIP0032 derivation scheme, SLIP0010 aims to provide master key derivation for different elliptic curves while preserving security and compatibility.
Key Generation and Hierarchical Derivation
Why Support Key Generation Across Multiple Curves?
Hardware wallets such as Trezor offer cryptographic features beyond cryptocurrencies such as Bitcoin and Ethereum, including SSH and GPG. These applications require different elliptic curves (for example, NIST P-256 and ed25519). SLIP0010 is a standard for generating a separate master key for each of these curves and using those keys securely.
SLIP0010 works with mnemonic standards such as BIP0039 and SLIP0039. These mnemonics (sequences of words) and a passphrase are used to generate a common seed (a 128–512-bit byte sequence), from which a master key is derived for each curve.
Master Key Generation
SLIP0010 derives the master key and chain code using a different HMAC key for each curve. This maintains compatibility with BIP0032 while avoiding key collisions across curves.
For secp256k1, for example, the HMAC key is "Bitcoin seed"; for NIST P-256, it is "Nist256p1 seed"; and for ed25519 and curve25519, it is "ed25519 seed" and "curve25519 seed", respectively.
The mathematical structure of keys for ed25519 and curve25519 differs, and the resulting bytes are used directly as the private key. Rather than the conventional approach of multiplying the curve's generator point by a scalar, the scheme uses the hash directly as the key. Consequently, these curves do not support public child key derivation (deriving a child key from a public key alone).
Master Key Generation Algorithm
- Compute HMAC-SHA512 using the seed (S) generated from the mnemonic. Use a curve-specific HMAC key (for example, "ed25519 seed").
- Split the HMAC output into two 32-byte halves. The first half is the private key, and the second is the chain code.
- For certain curves (secp256k1 and NIST P-256), retry if the private key is invalid (zero or greater than or equal to the curve order).
- For ed25519 and curve25519, any 32-byte sequence is a valid private key, so no retry is required.
Child Key Derivation
A defining characteristic of hierarchical deterministic wallets is the ability to derive successive child keys from a master key. This allows multiple accounts or application-specific keys to be managed securely from a single seed. SLIP0010 defines mechanisms to derive a child private key from a parent private key or a child public key from a parent public key.
However, ed25519 and curve25519 do not support public key derivation and support only hardened derivation from private keys.
Child Key Derivation from a Private Key (CKDpriv)
The corresponding child key is generated using the parent private key, chain code, and index (i).
For hardened derivation (i ≥ ), prefix the private key with 0x00 and use it as HMAC input data. For normal derivation (i < ), use the public key instead. Normal derivation is not supported for ed25519 and curve25519.
The first 32 bytes of the output form the child key, and the second half forms the next chain code. For ed25519 and curve25519, the first half is used directly as the private key. For the other curves, derivation is retried if the result is invalid (for example, if it is greater than or equal to the curve order).
Child Key Derivation from a Public Key (CKDpub)
This method is not available for ed25519 or curve25519. Deriving a child public key from a public key is supported only for conventional curves such as secp256k1 and NIST P-256.
Only normal derivation is supported; hardened derivation cannot be performed with a public key. The child public key is obtained by adding the point generated from the HMAC output to the parent public key. If the resulting key is invalid, the hash computation is repeated and derivation is retried.
Compatibility with BIP-0032
Limitations of BIP-0032
BIP0032 is widely used as a key derivation specification for HD wallets (hierarchical deterministic wallets), but its design allows invalid keys to be generated during master or child key derivation. For example, if the private key obtained during master key generation falls outside the elliptic curve's valid domain, it is invalid and subsequent keys are undefined. Similarly, child derivation at a particular index may produce an invalid value.
For secp256k1, this occurs extremely rarely (with a probability of ), so it is unlikely to cause practical problems. For other curves such as NIST P-256, however, the original article gives a probability of , making the practical impact non-negligible.
Extending the Specification with SLIP-0010
SLIP0010 extends BIP0032 to eliminate the uncertainty caused by invalid keys. In particular, it defines a valid child key at every index even for curves with a higher probability of failure, such as NIST P-256.
If an invalid key is generated during child derivation, the revised scheme does not skip the index. Instead, it repeats the hash computation until a valid key is obtained.
Compatibility with secp256k1
For secp256k1, the key derivation scheme in SLIP0010 is theoretically identical to BIP0032. The probability of agreement during key generation is greater than 1 - , which makes the schemes effectively fully compatible.
In theory, however, when the seed of a wallet that received assets using SLIP0010 is imported into a BIP0032 wallet, a particular key may very rarely be treated as invalid by BIP0032, preventing the corresponding assets from being displayed.
Conversely, when a seed generated using BIP0032 is imported into a SLIP0010 wallet, all assets will be recognized correctly because SLIP0010 retries derivation until a valid key is generated.
Closing Remarks
This article covered SLIP0010, a proposal for HD wallets that securely generate and manage curve-specific keys from one seed to support different cryptographic schemes. I hope it was helpful.
If you have any questions, feel free to reach out via Twitter DM.
I also publish on other platforms, which you can explore below.


