How do I generate an xPub using stellar SDK ? could anyone show me the format of a stellar extended public key ?

2 Answers 2


You can't generate xPub for Stellar keys according to SEP-0005. Stellar is using SLIP-0010 (as defined in SEP-0005). From "Master key generation" section:

ed25519 curve the private keys are no longer multipliers for the group generator; instead the hash of the private key is the multiplier. For this reason, our scheme for ed25519 does not support public key derivation and uses the produced hashes directly as private keys.

There are proposals for generating HD keys with a possibility to generate extended public keys for ed25519 like:

However these are not supported by Stellar.

Why Stellar selected SLIP-0010 over other solutions?

SLIP-0010 is supported in hardware wallets like Ledger or Trezor. We wanted a solution that is compatible with them.

  • Hi, thanks for this answer! However, both links in this post are dead, is anyone able to update them to new locations?
    – sisou
    Commented Sep 25, 2021 at 22:00

I think there is no API to generate it from Stellar SDK

This link help you to generate xPub https://iancoleman.io/bip39/?#english

  • That tool doesnt have stellar !
    – f4r4
    Commented Jul 12, 2018 at 11:31
  • I think stellar does not support xPub Commented Jul 13, 2018 at 9:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.