Open zxhubo opened 6 years ago
The xpub (extended public key) is generated from the private key.
Here is an example of xpub: xpub661MyMwAqRbcGmyYQB6zkDXoCYfZ9Rt859Hvtz5XPXYYYj78tu47gdGvDcrehtHLDKZBy8HLe4HHGrRKWDMi8dwxvyUY4n4nrZdB5Dztrsm
Use the following code to generate an xpub with pywallet:
from pywallet import wallet
w = wallet.create_wallet(network='BCH')
print(w['xpublic_key'])
@BUYMERCIER thanks very much。
@zxhubo please close the issue if you don't need any further help ;)
the README.md has code for example: user_addr = wallet.create_address(network="BTC", xpub=WALLET_PUBKEY, child=10)
xpub is a constant,but I don't know how to padding it ? for example xpub ="BTC" ? or other ?