Skip to content

A JavaScript library to derive bitcoin addresses from extended public keys. Includes a web tool and CLI.

License

Notifications You must be signed in to change notification settings

swan-bitcoin/xpub-tool

Repository files navigation

Swan's Address Derivation Tool

code style: prettier

A small JavaScript library and accompanying tool that derives bitcoin addresses from extended public keys. Built upon unchained-bitcoin and bitcoinjs-lib.

For more details refer to the individual packages:

  • xpub-lib - address derivation and validation library
  • xpub-cli - command-line interface

Relevant BIPs and Educational Resources

  • BIP 32 - Hierarchical Deterministic Wallets
  • BIP 44 - Multi-Account Hierarchy for Deterministic Wallets
  • BIP 49 - Derivation scheme for P2WPKH-nested-in-P2SH based accounts
  • BIP 84 - Derivation scheme for P2WPKH based accounts

Samourai Wallet wrote a short summary on the differences between BIP 44, BIP 49, BIP 84 and XPUB's, YPUB's, ZPUB's. For a detailed explanation on derivation paths refer to learn me a bitcoin.

License: MIT

About

A JavaScript library to derive bitcoin addresses from extended public keys. Includes a web tool and CLI.

Topics

Resources

License

Stars

Watchers

Forks

Packages