1

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

2 Answers 2

3

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.

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

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

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

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

Your Answer

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

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