0.2.1 • Published 12 months ago
near-seed-phrase v0.2.1
NEAR Seed Phrase
This tool enables creating and converting mnemonic-phrases, public key and private key for NEAR accounts.
Install
npm i near-seed-phrase
Usage
const { parseSeedPhrase, generateSeedPhrase } = require('near-seed-phrase');
// to create a seed phrase with its corresponding Keys
const {seedPhrase, publicKey, secretKey} = generateSeedPhrase()
// To recover keys from the seed phrase
const { publicKey, secretKey } = parseSeedPhrase(seedPhrase);