stellar-keypair-from-seed
v1.0.0
Published
This package will help you generate Stellar's Ed25519 keypair by the provided seed. As long as the seed is consistent, your keypair will always be the same.
Maintainers
Readme
stellar-keypair-from-seed
This package will help you generate Stellar's Ed25519 keypair by the provided seed. As long as the seed is consistent, your keypair will always be the same.
Installation
Using npm:
npm install stellar-keypair-from-seedExamples
To derive keypair from a seed:
var keypair = require('stellar-keypair-from-seed');
const seed = '[email protected]';
// to derive a keypair by the above seed
const keypairFromSeed = keypair(seed);
// to get the public key
keypairFromSeed.publicKey();
// to get the secret key
keypairFromSeed.secret();