-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
multi-byte version number #635
Comments
It would break, but not by much. https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/src/address.js#L30 would be https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/src/address.js#L31 would need to be and https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/src/address.js#L8-L10 would need to account for a and finally https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/src/address.js#L12 would need to be That is all AFAIK. |
Ultimately there is going to be a bit of a shake up in that code soon with SegWit addresses, so, it could be adapted to then. |
Thanks. I will keep this issue up until zcash actually adds this to code. I just wanted to let you know up front :) so the code can be adapted (if you want to support zcash once it's done). |
@Runn1ng I really don't know how much effort it is worth keeping compatibility with other cryptocurrencies. I do want to make sure that any forks that occur can easily rebase off our code, so I try to do things generically, but I don't ever want to compromise some of the strict decoding/encoding rules to allow for arbitrary addresses that may not be standard for bitcoin. |
Another effort in this area would probably include #554 |
@Runn1ng I'm not sure what you intend to wait on in regards to bitcoinjs-lib? Any reason to keep the issue open? |
I thought you will be interested in supporting other coins; if you won't (as you implicated), I will close this issue. |
Well, I am. But I don't think we should compromise on good software design for it. But, if a fork is a better option to avoid copious technicality and bike-shedding, then that is the better option IMHO. Thoughts? |
OK, I am now going to do changes necessary for zcash, since they updated to multibyte already (and we want to add zcash to mytrezor). So I will let you know how that works. |
Bitcoin set a number of things as a convention, which numerous altcoins deviated from.. Since zcash isn't a line-for-line copy of Bitcoin Core I expect you'll be adding a lot of new code which wouldn't belong here! It's definitely worth watching how you adapt this code to something so different, go to town with it! |
If you are interested, my zcash adaptations are here It is not a full support (I don't strive for that) and there might be some bugs What do I need is
|
From what I hear, zcash (upcoming bitcoin clone, with added anonymous zero-knowledge proof transactions) will use address version/prefix with 2 bytes.
Will bitcoin.js "survive" this?
There is some discussion here - zcash/zcash#812 - and it seems they are going forward with the idea.
The text was updated successfully, but these errors were encountered: