{"repo":"darosior/python-bip32","free":true,"listed":false,"github":"https://github.com/darosior/python-bip32","clone":"git clone https://github.com/darosior/python-bip32.git","description":"Minimalistic implementation of BIP32","language":"Python","stars":51,"topics":["bitcoin","bip32","hdwallet","wallet"],"license":"BSD-3-Clause","category":"blockchain-web3","readme_excerpt":"python-bip32 A minimalistic implementation of BIP 32. Usage Installation Dependencies This uses coincurve as a wrapper for libsecp256k1 for EC operations. Running the test suite Interface All public keys below are compressed. All path below are a list of integers representing the index of the key at each depth. BIP32 from seed(seed) classmethod Instanciate from a raw seed (as bytes ). See bip-0032's master key generation. from xpriv(xpriv) classmethod Instanciate with an encoded serialized extended private key (as str ) as master. from xpub(xpub) classmethod Instanciate with an encoded serialized extended public key (as str ) as master. You'll only be able to derive unhardened public keys. get extended privkey from path(path) Returns (chaincode (bytes), privkey (bytes)) of the private key pointed by the path. get privkey from path(path) Returns privkey (bytes) , the private key pointed by the path. get extended pubkey from path(path) Returns (chaincode (bytes), pubkey (bytes)) of the public key pointed by the path. Note that you don't need to have provided the master private key if the path doesn't include an index = HARDENED INDEX . get pubkey from path(path) Returns pubkey (bytes) , the public key pointed by the path. Note that you don't need to have provided the master private key if the path doesn't include an index = HARDENED INDEX . get xpriv from path(path) Returns xpriv (str) the serialized and encoded extended private key pointed by the given path. get xpub from path","default_branch":null,"files":null,"tree":[],"storefront":"/r/darosior","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/darosior/python-bip32/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}