-
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
Change rmd160 -> ripemd160 for Electron v4 #1373
Conversation
Bump to 4.0.3
Electron v4 only supports ripemd160; no support for the rmd160 alias.
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.
utACK
Looks like tests are failing due to a network error |
This could break someone's app. Just like Electron making the assumption that no one uses the rmd160 algorithm, us making the assumption that all of our users will have "ripemd160" could break something. Please put in a try catch. see the BIP32 PR for details. also, we need to bump the BIP32 dependency to use the new patch. NACK until these changes are made. |
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.
see above comment
Absolutely. What if we bring it in with the next major of bitcoinjs-lib? |
Yeah that's what I was thinking... Perhaps for the typescript v5 bump. |
@junderw What were the breaking changes in bip32 v2.0.0? |
TypeScript support changed some of the internal variable names. While we had them named __d etc. to denote "don't rely on this" we can't be sure, so bumped major. |
... You know what... after thinking about it, we are basically just passing the bip32 library as-is as a sub-attribute of this library... and we're bumping major for it in order to fix this problem... which could cause problems for apps if they rely on the internals of BIP32 (which they shouldn't, but still) I think we'll wait until the next major version ( TypeScript #1319 ) I have gone ahead and added this. For now, just use Electron v3, or patch your bundle before deploying. |
backported the patch, this should be fine for release. |
v4.0.4 is published. |
Electron v4 only supports ripemd160; no support for the rmd160 alias.