Protocols

XRP Ledger family seeds

Last reviewed 1 December 2026.

Safety: Never type or paste a real family seed, passphrase, or private key into a website, chat, or any tool you do not fully control and trust. This page describes official XRP Ledger encodings. It does not ask you to enter a secret.

The native secret for an XRP Ledger account is not a BIP39 phrase. Official documentation, in Cryptographic Keys and base58 Encodings, describes a compact 16-byte seed that is encoded so the printable string starts with s. That family seed is the usual backup. A 12- or 24-word English phrase is not this format.

Encoding: 16 bytes, prefix 0x21, starts with s

The XRP Ledger uses a Base58Check-style encoding, with its own dictionary:

rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz

Different data types are prefixed with an 8-bit type number before encoding, so the resulting strings start with a letter that identifies the type. Official values include:

Data typeStarts withType prefixContent size
Account addressr0x0020 bytes
Account public keya0x2333 bytes
Seed value (for secret keys)s0x2116 bytes
Validation or node public keyn0x1C33 bytes

A family seed is therefore a 16-byte value with prefix 0x21, at most 29 characters once encoded, always starting with s. An address starts with r. Do not treat an r… address as a backup, and do not treat an s… seed as a BIP39 mnemonic.

The seed is secret. Official documentation says that anyone who knows an address's seed has effectively full control over that address. The private key, which most software derives from the seed when it needs to sign, is equally secret. The public key, account ID, and address are public.

One seed, two common algorithms

Keys are always generated from a 16-byte seed. Official documentation is explicit that the algorithm matters as well. Many client libraries, including xrpl.js, default to Ed25519. The xrpld wallet_propose admin RPC command defaults to secp256k1. Instantiating a wallet from the same seed with a different tool can yield a different address unless you specify the algorithm.

That is a practical restore trap. An s… seed imported in one app as Ed25519 and in another as secp256k1 will not show the same r… address. Official docs tell you to set the algorithm explicitly when tools disagree.

For Ed25519, official derivation is compact: the 32-byte secret key is the SHA-512Half of the 16-byte seed (SHA-512 truncated to 32 bytes). For secp256k1, official derivation is a longer process that produces a root key pair from the seed and then an intermediate key; the documentation notes an unused, incomplete framework for deriving a family of key pairs, and that in practice only sequence value 0 is used.

The word "family" in "family seed" is historical. It does not mean a BIP44 tree of accounts from one mnemonic.

Passphrases in official docs are not BIP39

Official documentation allows an optional passphrase as a way of choosing a seed. It also warns that this is less secure than choosing the seed completely at random. The specified construction is: take the SHA-512 hash of the passphrase and keep the first 16 bytes as the seed.

That is not BIP39. It is not PBKDF2, there is no wordlist, and there is no "mnemonic" salt. A phrase you type as an XRPL passphrase in this official sense is a way to stretch text into 16 bytes, not a recovery sentence. Anyone who knows that passphrase can rebuild the seed.

BIP39 is also not specified as the XRP Ledger's native key format in the cryptographic-keys document. If a particular wallet offers a 12- or 24-word backup, that is a wallet convention, and it is a different backup from an s… family seed. This page does not treat such a phrase as an XRP Ledger standard.

In a wallet_propose response, official docs say master_key, master_seed, and master_seed_hex are the same seed in different encodings. Any of those formats can sign. The master_ prefix in those field names does not always mean the key is the account's master key pair; the same key material can be used as a regular key or as a member of a signer list.

If you are moving an account between tools, take the s… seed and note the algorithm the original wallet used. Official documentation lists the seed, the private key, and an optional passphrase as equivalent secrets: any one of them can control the address. An address, a public key, or a regular-key setup is not a complete backup by itself, because spending still requires the secret that can sign. A regular key or a signer list can also mean that the seed you first created is no longer the only, or even the currently authorized, signing key. Restore the secret you actually use to sign, not only the first secret you were ever shown.

FAQ

Does an XRP Ledger secret start with s? A family seed does, because of type prefix 0x21. An address starts with r. A secret that looks like 12 English words is not this native format.

Can I import an s… seed into a BIP39 wallet? Not as a BIP39 mnemonic. A BIP39 wallet will try to interpret words and run a seed KDF. A family seed is 16 encoded bytes.

I imported the same seed and got a different address. Check the signing algorithm. Official docs warn that Ed25519 and secp256k1 defaults differ across tools, and that the same seed can produce two addresses.

Is an XRPL passphrase the same as a BIP39 passphrase? No. Official XRPL passphrase-to-seed derivation is the first 16 bytes of SHA-512 of the passphrase.

See also

Sources