Skip to main content
3 votes
Accepted

How do I generate an xPub using stellar SDK?

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 ...
Bartek Nowotarski's user avatar
2 votes

What is "Account ID" in Stellar terms?

An Account ID is a unique identifier for a registered account, and is an StrKey-encoded ed25519 public key. NB: Not all public keys are account IDs. E.g., it's perfectly fine to have signers that are ...
Johan Stén's user avatar
  • 1,947
1 vote

What is "Account ID" in Stellar terms?

It is indeed mostly means the public key but sometimes it means the user name part of a federated stellar address, which is something completely different and indeed confusing. Federation is ...
Jilles van Gurp's user avatar
1 vote
Accepted

Encrypting message gives error : throw new TypeError('unexpected type ' + t + ', use Uint8Array');

Once you generate Keypair using ed25519 you need to use stellar sdk to convert keys in string representation. See exact StrKey functions function below of Stellar SDk: /** * StrKey is a helper ...
Sohan's user avatar
  • 188
1 vote

Encrypting message gives error : throw new TypeError('unexpected type ' + t + ', use Uint8Array');

TweetNacl doesn't talk Stellar. You need to convert the keys from their StrKey representation to Buffers. StellarSdk.StrKey.decodeEd25519PublicKey() and StellarSdk.StrKey.decodeEd25519SecretSeed() is ...
Johan Stén's user avatar
  • 1,947

Only top scored, non community-wiki answers of a minimum length are eligible