-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add Bitcoin-core regtest bech32 addresses support #14
Conversation
bitcoin-core addresses on regtest start with "bcrt1". While this is not part of BIP173, adding the support allows user to use bitcoin-core regtest to end-to-end test their rust software using this library.
Hi, thanks for the PR. I will have a look at rust-bitcoin later to see how much work it would be to integrate the current version of rust-bech32-bitcoin. Imo this issue is also related to #7 (and I'd say somehow blocked if it's not too urgent to have regtest support) since you had to introduce new enum variants everywhere otherwise. Regarding the tags, it should be easy to find the commits changing the version in the Cargo.toml, so maybe I can reconstruct some of the tags. We should begin tagging new version again imo. The version number for this change has to be 0.6.0 since adding a variant to an enum which would break some formerly exhaustive matches. It would be nice if you could change the version number in the |
I suggest renaming to |
After looking at the code and noticing that I've opened rust-bitcoin/rust-bitcoin#100 to make |
All requested changes done. Let me know if there is anything else. I'll see if I can help with rust-bitcoin :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Published |
Bitcoin-core addresses on regtest start with "bcrt1".
While this is not part of BIP173, adding the support allows library users to use bitcoin-core regtest to end-to-end test their rust software.
Please note that I would like to do a similar pull request for repo rust-bitcoin. However, rust-bech32-bitcoin/master contains breaking changes which means that rust-bitcoin/master cannot compile with the current bech32/master.
I had to create a branch based from commit 4d08819 to implement my changes and use them with rust-bitcoin/master.
If you are happy with integrating this pull request, could you please assist in creating a release 0.5.2? (0.5.1 + this pull request). I cannot see a dedicated branch/tag for 0.5.1 in this repo.
Many thanks for considering my request and in providing this very useful library!