Skip to content

This repo is about setting a multi-blockchain wallet in Python

Notifications You must be signed in to change notification settings

vmieres/BlockChain-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multi-BlockChain Wallet in Python

Background and Wallet Description

There aren't a lot of tools available in Python for managing multiple kind of currencies in one single wallet. Fortunatelly we have a command line tool, hd-wallet-derive that supports not only BIP32, BIP39, and BIP44, but also supports non-standard derivation paths for the most popular wallets out there today.

hd-wallet-derive is a "universal" wallet and can manage billions of addresses across a bunch of coins.

In this case, let's make only get 2 coins work: Ethereum and Bitcoin Testnet. Ethereum keys are the same format on any network, so the Ethereum keys should work with a custom networks or testnets.

Dependencies

PHP must be installed on your operating system (any version, 5 or 7).

Clone the hd-wallet-derive tool.

bit Python Bitcoin library.

web3.py Python Ethereum library.

Instructions

HD Derive Wallet Install Guide

This guide serves as a step by step process for setting up the hd-wallet-derive library used to derive BIP32 addresses and private keys for Bitcoin and other alternative coins or "altcoins."

hd-wallet-derive Installation

After installing PHP in our computers we can install the hd-wallet-derive library.

  • Navigate to the Github website for the hd-wallet-derive library and scroll down to the installation part.

  • Next execute this commands:

  • Afer that, you should have a folder called hd-wallet-derive that contains the PHP library.

hd-wallet-derive Execution

  • Using terminal/git bash navigate to the hd-wallet-derive folder.

Run the following commands.

./hd-wallet-derive.php -g >--key=xprv9tyUQV64JT5qs3RSTJkXCWKMyUgoQp7F3hA1xzG6ZGu6u6Q9VMNjGr6>7Lctvy5P8oyaYAL9CAWrUE9i6GoNMKUga5biW6Hx4tws2six3b9c

./hd-wallet-derive.php -g >--key=xprv9tyUQV64JT5qs3RSTJkXCWKMyUgoQp7F3hA1xzG6ZGu6u6Q9VMNjGr6>7Lctvy5P8oyaYAL9CAWrUE9i6GoNMKUga5biW6Hx4tws2six3b9c >--numderive=3 --preset=bitcoincore --cols=path,address >--path-change

Wallet.py-file

This file runs all the functions that interact with hd-wallet-derive using the command line. The function below calls out the dictionary of coins with addresses and privkeys.

To transfer money from one account to another you will need to run send_tx functions.

Please refer to snap_shots folder for more images.

Releases

No releases published

Packages

No packages published

Languages