Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 493 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 493 Bytes

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