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

Any chance for zpub support? #2

Open
monomadic opened this issue Feb 10, 2020 · 3 comments
Open

Any chance for zpub support? #2

monomadic opened this issue Feb 10, 2020 · 3 comments

Comments

@monomadic
Copy link

zpub is like xpub but for bc1 prefixed (segwit) addresses. Currently they don't seem to be supported.

More info:
https://whotookmycrypto.com/master-extended-public-keys/

@jtormey
Copy link
Owner

jtormey commented Feb 13, 2020

I don't have plans to support this, but PRs are welcome!

This project uses BitcoinJS, so as long as that library supports zpubs then I don't think this is a difficult feature to implement (although it may require upgrading the library). Here is the code that generates the derivations.

@monomadic
Copy link
Author

I'll do what I can, I don't have a lot of time this month but I'll definitely look into it :) thanks for the reply.

@jtormey
Copy link
Owner

jtormey commented Feb 14, 2020

Sweet! Before getting too deep into this, it may be worthwhile to check whether or not the blockchain.com API supports zpubs. If it doesn't, then this may be a bigger project as it would probably require adding a new API provider.

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