Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is meaning of parameter WALLET_PUBKEY #35

Open
zxhubo opened this issue Nov 12, 2018 · 3 comments
Open

what is meaning of parameter WALLET_PUBKEY #35

zxhubo opened this issue Nov 12, 2018 · 3 comments

Comments

@zxhubo
Copy link

zxhubo commented Nov 12, 2018

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 ?

@merc1er
Copy link

merc1er commented Nov 15, 2018

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'])

@zxhubo
Copy link
Author

zxhubo commented Nov 16, 2018

@BUYMERCIER thanks very much。

@merc1er
Copy link

merc1er commented Nov 16, 2018

@zxhubo please close the issue if you don't need any further help ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants