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.
npm install stellar-keypair-from-seedThis 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.
Using npm:
``sh`
npm install stellar-keypair-from-seed
To derive keypair from a seed:
`javascript
var keypair = require('stellar-keypair-from-seed');
const seed = 'abc@email.com';
// 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();
``