Skip to content

3rdIteration/btc-extended-key-converter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Extended Key Converter (Public & Private)

What is this tool?

Most Bitcoin wallets these days support BIP32, Hierarchical Deterministic Wallets. This enables a user to keep track of a single piece of data from which a nearly infinite number of public/private keypairs can be generated deterministically. As Bitcoin wallets have increased in complexity over the years, there are now a variety of different versions of extended public/private keys. You can convert an extended public/private key from any version to a different version by changing the "version bytes" but this is hard to do if you aren't an experienced developer. This tool makes it simple for anyone to convert between different versions. (Eg: Converting xpub to ypub or xpub, converting xprv to yprv or zprv)

Who needs this tool?

Bitcoin wallet developers may find this tool helpful during testing, such as for switching between mainnet and testnet versions.

Bitcoin users may find this tool helpful if they are trying to import watch-only wallets into software that expects a specific version of extended public key with regard to the paths used for key derivation. (For example, those seeking to export an xpub/ypub/zpub from Ledger Live to use in some other wallet or tool.)

Standards

This tool uses version bytes as described in SLIP-0132

Usage

Online

You can run this tool in your browser directly from Github by clicking here

Offline

Simply unzipping this Github repository and running index.html in any browser will run the tool correctly.

Editing

Rather than simply editing browserified.js, you should edit the xpubConvert.js file in the /js folder and then build this tool using the command below.

Building

Install browserify: http://browserify.org/ run from the js/ directory: browserify -e xpubConvert.js -o browserified.js -t [ babelify --presets [@babel/preset-env] ]

License

The Bitcoin Extended Public Key Converter is released under the terms of the MIT license. See COPYING for more information or see http://opensource.org/licenses/MIT.

About

Simple web tool for converting extended bitcoin keys between different versions

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.1%
  • HTML 1.9%