1.0.0 • Published 5 years ago

stellar-keypair-from-seed v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

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-seed

Examples

To derive keypair from a seed:

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();