This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

nip06
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

NIP06

tests

Install

npm i nip06

Usage

import {
  privateKeyFromSeedWords,
  getPublicKey,
  getBech32PrivateKey,
  getBech32PublicKey
} from 'nip06'

const mnemonic = 'zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo zoo wrong'
const passphrase = 'your super secure passphrase' // optional

// hex format
const { privateKey } = privateKeyFromSeedWords({ mnemonic, passphrase })
const { publicKey } = getPublicKey({ privateKey })
// bech32 format
const { bech32PrivateKey } = getBech32PrivateKey({ privateKey })
const { bech32PublicKey } = getBech32PublicKey({ publicKey })

Readme

Keywords

none

Package Sidebar

Install

npm i nip06

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

17.2 kB

Total Files

20

Last publish

Collaborators

  • jaonoctus