Socket
Socket
Sign inDemoInstall

bip39

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bip39 - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

package.json
{
"name": "bip39",
"version": "3.0.0",
"version": "3.0.1",
"description": "Bitcoin BIP39: Mnemonic code for generating deterministic keys",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -38,2 +38,12 @@ # BIP39

This will create a bundle that only contains the chinese_simplified wordlist, and it will be the default wordlist for all calls without explicit wordlists.
You can also do this in Webpack using the `IgnorePlugin`. Here is an example of excluding all non-English wordlists
```javascript
...
plugins: [
new webpack.IgnorePlugin(/^\.\/(?!english)/, /bip39\/src\/wordlists$/),
],
...
```

@@ -40,0 +50,0 @@ This is how it will look in the browser console.

/// <reference types="node" />
export declare function mnemonicToSeedSync(mnemonic: string, password: string): Buffer;
export declare function mnemonicToSeed(mnemonic: string, password: string): Promise<Buffer>;
export declare function mnemonicToSeedSync(mnemonic: string, password?: string): Buffer;
export declare function mnemonicToSeed(mnemonic: string, password?: string): Promise<Buffer>;
export declare function mnemonicToEntropy(mnemonic: string, wordlist?: string[]): string;

@@ -5,0 +5,0 @@ export declare function entropyToMnemonic(entropy: Buffer | string, wordlist?: string[]): string;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc