MCPcopy
hub / github.com/iancoleman/bip39

github.com/iancoleman/bip39 @0.5.6 sqlite

repository ↗ · DeepWiki ↗ · release 0.5.6 ↗
1,576 symbols 4,051 edges 35 files 10 documented · 1%
README

BIP39 Tool

A tool for converting BIP39 mnemonic phrases to addresses and private keys.

Online Version

https://iancoleman.io/bip39/

Standalone offline version

Download bip39-standalone.html from the releases.

Open the file in a browser by double clicking it.

This can be compiled from source using the command python compile.py

Usage

Enter your BIP39 phrase into the 'BIP39 Phrase' field, or press 'Generate Random Phrase'

If required, set the derivation path, although the defaults are quite usable.

See the table for a list of addresses generated from the phrase.

Toggle columns to blank to easily copy/paste a single column of data, eg to import private keys into a wallet or supply someone with a list of addresses.

The BIP32 keys can be used at bip32.org if desired.

Donations

Since this project is the efforts of many people, most of which don't appear in the obvious places like code or issues, donating to the project itself causes significant operational difficulties.

As a result, if you would like to support this project financially you are encouraged to donate to one of the many groups that makes the internet a place amenable to projects such as this one.

Donation-accepting organizations and projects

If the list is too difficult to choose from, the EFF is a good choice.

Electronic Frontier Foundation

or for a direct bitcoin address, consider donating to the Free Software Foundation at 1PC9aZC4hNX2rmmrt7uHTfYAS3hRbph4UN

alt text

Making changes

Please do not make modifications to bip39-standalone.html, since they will be overwritten by compile.py.

Make changes in src/*.

Changes are applied during release using the command python compile.py, so please do not commit changes to bip39-standalone.html

Tests

Tests depend on

  • nodejs
  • selenium webdriver - cd /path/to/bip39/tests; npm install
  • selenium driver for firefox (geckodriver) and / or chrome (chromedriver)
  • jasmine - npm install --global jasmine

Before running tests, the site must be served at http://localhost:8000.

$ cd /path/to/bip39/src
$ python -m http.server

or for python2
$ python -m SimpleHTTPServer

Run tests from the command-line

$ cd /path/to/bip39/tests
$ jasmine spec/tests.js

License

This BIP39 tool is released under the terms of the MIT license. See LICENSE for more information or see https://opensource.org/licenses/MIT.

Extension points exported contracts — how you extend this code

BaseConverter (Interface)
(no doc)
libs/base-x/ts_src/index.ts

Core symbols most depended-on inside this repo

assert
called by 271
src/js/bip39-libs.js
$
called by 264
src/js/bip39-libs.js
setHdCoin
called by 205
src/js/index.js
testNetwork
called by 201
tests/spec/tests.js
update
called by 199
src/js/bip39-libs.js
done
called by 136
src/js/bip39-libs.js
encode
called by 133
libs/base-x/ts_src/index.ts
digest
called by 119
src/js/bip39-libs.js

Shape

Function 1,514
Method 53
Class 8
Interface 1

Languages

TypeScript100%

Modules by API surface

src/js/bip39-libs.js1,272 symbols
src/js/index.js114 symbols
src/js/jquery-3.2.1.js102 symbols
src/js/bootstrap.js24 symbols
tests/spec/tests.js15 symbols
src/js/jsbip39.js9 symbols
libs/bitcoinjs-bip38/index.js9 symbols
libs/base-x/ts_src/index.ts8 symbols
libs/ethereumjs-util/index.js4 symbols
src/js/xwc-util.js3 symbols
src/js/sjcl-bip39.js2 symbols
src/js/ripple-util.js2 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@types/node12.0.10 · 1×
base-x3.0.7 · 1×
bchaddrjs0.4.4 · 1×
bchaddrjs-slpgit://github.com/sim · 1×
bech321.1.4 · 1×
bigi1.2.0 · 1×
bip382.0.2 · 1×
bip38grsgit://github.com/Gro · 1×
bip850.0.3 · 1×
bitcoinjs-libgit://github.com/ian · 1×
bn.js4.11.0 · 1×
browserify16.2.3 · 1×

For agents

$ claude mcp add bip39 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact