New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

micro-bip39

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micro-bip39

Create BIP39 mnemonic phrases with minimum dependencies

latest
npmnpm
Version
0.1.3
Version published
Weekly downloads
18
12.5%
Maintainers
1
Weekly downloads
 
Created
Source

micro-bip39

Create BIP39 mnemonic phrases with minimum dependencies.

Developed for, and then extracted from js-ethereum-cryptography. The source code is the same, the files have been copied for convenience.

Usage

npm install micro-bip39

Or, yarn add micro-bip39

API

This submodule contains the word lists defined by BIP39 for Czech, English, French, Italian, Japanese, Korean, Simplified and Traditional Chinese, and Spanish. These are not imported by default, as that would increase bundle sizes too much. Instead, you should import and use them explicitly.

To import a particular wordlist, use:

import { wordlist } from 'micro-bip39/wordlists/english';
import { wordlist as spanish } from 'micro-bip39/wordlists/spanish';
function generateMnemonic(wordlist: string[], strength?: number): string;
function mnemonicToEntropy(mnemonic: string, wordlist: string[]): Uint8Array;
function entropyToMnemonic(entropy: Uint8Array, wordlist: string[]): string;
function validateMnemonic(mnemonic: string, wordlist: string[]): boolean;
function mnemonicToSeed(mnemonic: string, passphrase?: string): Promise<Uint8Array>;
function mnemonicToSeedSync(mnemonic: string, passphrase?: string): Uint8Array;

License

MIT License

Copyright (c) 2021 Patricio Palladino, Paul Miller, ethereum-cryptography contributors

Keywords

bip39

FAQs

Package last updated on 24 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts