I have tried generating key-pair using Conseiljs and tezbridge. Both are returning the secret key of length 98 and public key of length 54. Why?

It is mentioned in the documentation that tezos use Ed25519 to generate keypair. But in stellar which uses the same algorithm generates keypair of length 56.

Is it using some other algorithm or it is in encrypted form?

1 Answer 1


It should be 54 for that option. Maybe Stellar has some extra bytes padding?

If the secret key length is 98, then what you have is a full secret key. After you b58decode this, the last 32 chars are the public key.

If secret key length is 54, what you have is actually a seed phrase. b58decode this then use ed25519's NewKeyFromSeed function to get you the private key, and from there, the public key.

GoLang Tezos Library Reference

  • Thanks for the reference. Apr 12, 2020 at 17:37
  • @ShubhamChadokar Please mark as answered.
    – utdrmac
    May 3, 2020 at 20:03

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.