Safety: Never type or paste a real recovery phrase into a website, chat, or any tool you do not fully control and trust. Keys and phrases quoted below are official published test cases from SEP-0005.
SEP-0005 is the Stellar Ecosystem Proposal for deriving Stellar keys from a mnemonic. Unlike several other pages in this section, the mnemonic and the seed are standard BIP39. What differs is the path and the curve.
SEP-0005 is a final specification, last updated 16 June 2020. Its goal is to make derivation the same across wallets and apps, and to let a single seed produce more than one Stellar key.
BIP39 seed, then SLIP-0010
SEP-0005 says BIP39 should be used to derive the binary seed from a mnemonic code. An optional BIP39 passphrase applies in the usual way: it is part of the seed, not a Stellar-specific extra step. The specification strongly recommends a 24-word mnemonic (256 bits of entropy). 12- and 15-word test cases are also published, but the recommendation is 24 words.
Child keys are derived for Ed25519 using SLIP-0010. They are not Bitcoin BIP32 secp256k1 children. SLIP-0010 allows only hardened Ed25519 derivation, which is one reason SEP-0005 does not use a full five-level BIP44 path.
The path m/44'/148'/x'
SEP-0005 adapts BIP44 with coin type 148, as assigned in SLIP-0044. The path is:
m / 44' / 148' / x'
Every level is hardened. x is the account index. The specification calls m/44'/148'/0' the primary key. Later accounts are m/44'/148'/1', m/44'/148'/2', and so on.
SEP-0005 gives two reasons for this shortened path. First, SLIP-0010 does not allow child derivation from non-hardened keys, so the usual BIP44 change and address-index levels do not apply in the same way. Second, every Stellar account must hold a minimum balance, and the specification assumes most users will use a single primary account.
A wallet that instead derived m/44'/148'/0'/0/0 would not be following SEP-0005, and would not match the official test cases.
Official test cases
Public test vector, never use for funds.
phrase: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about
BIP39 seed: 5eb00bbddcf069084889a8ab9155568165f5c453ccb85e70811aaed6f6da5fc19a5ac40b389cd370d086206dec8aa6c43daea6690f20ad3d8d48b2d2ce9e38e4
m/44'/148'/0' public: GB3JDWCQJCWMJ3IILWIGDTQJJC5567PGVEVXSCVPEQOTDN64VJBDQBYX
m/44'/148'/0' secret: SBUV3MRWKNS6AYKZ6E6MOUVF2OYMON3MIUASWL3JLY5E3ISDJFELYBRZ
A 24-word case with the BIP39 passphrase p4ssphr4se is also in the specification (Test 4). The passphrase changes the seed, so the Stellar keys are different from the same words with an empty passphrase. The specification gives the primary account GDAHPZ2NSYIIHZXM56Y36SBVTV5QKFIZGYMMBHOU53ETUSWTP62B63EQ for that published test. Restore with the same passphrase the original wallet used, or you will get a valid-looking but unused account.
When you compare wallets, compare the path and the passphrase as well as the words. A BIP39 importer that uses Bitcoin paths, or a tool that takes only the first 32 bytes of the seed, will not produce these official Stellar addresses.
Secrets, addresses, and passphrases
Stellar official test cases print two strings for each derived account: a public key that starts with G, and a secret key that starts with S. The S… secret is the Stellar encoding of that path's private key. It is not a BIP39 mnemonic, and it is not interchangeable with the 24-word backup. If a wallet shows you an S… secret, that is a single-key backup for one account, not the SEP-0005 tree.
The mnemonic, by contrast, is meant to reconstruct the whole tree: the primary key and any later x' you used. Official tests list ten indexes, 0 through 9. You still need to remember how far you went. Deriving only m/44'/148'/0' will miss funds sent to m/44'/148'/1'.
A "password" field in a wallet must be treated as a BIP39 passphrase here, because SEP-0005 uses BIP39 for the seed. That is unlike Cardano Icarus or Polkadot, where a password-like field may feed a different KDF.
SEP-0005 also lists a 24-word test without a passphrase (Test 3). The specification's own recommendation is to use 24 words when you create a new backup. Shorter official tests exist so implementers can check 12- and 15-word decoding, not because the specification prefers them.
A reference implementation is cited in the proposal itself: the stellar-hd-wallet tool and the derivation package in stellar/go. Those are mentioned so you can find official code, not as a request to paste a real phrase into any hosted demo.
FAQ
Is a Stellar 24-word phrase BIP39? Under SEP-0005, yes: the mnemonic and the seed KDF are BIP39. The derivation is SLIP-0010 along m/44'/148'/x'.
Why is the path only three levels? SEP-0005 explains that SLIP-0010 hardens every Ed25519 step, and that most users are expected to keep a single primary account because of Stellar's minimum balance.
What is the primary key? m/44'/148'/0'. That is the first account in the official test cases.
Can I restore this phrase in a Bitcoin or Ethereum wallet? The words may import, but those wallets will derive different paths and, for Bitcoin, a different curve. The Stellar account is the SEP-0005 child, not the Bitcoin BIP44 child of the same seed.
See also
- Other seeds and derivation schemes
- BIP39 passphrase
- BIP44
- Tezos and Nano, which also use short Ed25519 paths
Sources
- https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0005.md
- https://github.com/satoshilabs/slips/blob/master/slip-0010.md
- https://github.com/satoshilabs/slips/blob/master/slip-0044.md
- https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
- https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki