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

Change rmd160 -> ripemd160 for Electron v4 #1373

Merged
merged 5 commits into from
Apr 4, 2019
Merged

Change rmd160 -> ripemd160 for Electron v4 #1373

merged 5 commits into from
Apr 4, 2019

Conversation

RyanZim
Copy link

@RyanZim RyanZim commented Apr 1, 2019

Electron v4 only supports ripemd160; no support for the rmd160 alias.

junderw and others added 2 commits March 5, 2019 15:54
Electron v4 only supports ripemd160; no support for the rmd160 alias.
Copy link
Member

@jprichardson jprichardson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@RyanZim
Copy link
Author

RyanZim commented Apr 1, 2019

Looks like tests are failing due to a network error

@junderw
Copy link
Member

junderw commented Apr 1, 2019

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.

Copy link
Member

@junderw junderw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above comment

@jprichardson
Copy link
Member

This could break someone's app.

Absolutely. What if we bring it in with the next major of bitcoinjs-lib?

@junderw
Copy link
Member

junderw commented Apr 2, 2019

Yeah that's what I was thinking... Perhaps for the typescript v5 bump.

@RyanZim
Copy link
Author

RyanZim commented Apr 3, 2019

@junderw What were the breaking changes in bip32 v2.0.0?

@junderw
Copy link
Member

junderw commented Apr 3, 2019

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.

@junderw junderw closed this Apr 3, 2019
@junderw junderw reopened this Apr 3, 2019
@junderw
Copy link
Member

junderw commented Apr 4, 2019

... 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.

@junderw junderw closed this Apr 4, 2019
@junderw junderw reopened this Apr 4, 2019
@junderw
Copy link
Member

junderw commented Apr 4, 2019

backported the patch, this should be fine for release.

@junderw junderw changed the base branch from master to v4 April 4, 2019 01:51
@junderw junderw merged commit e2d2dcf into bitcoinjs:v4 Apr 4, 2019
@junderw
Copy link
Member

junderw commented Apr 4, 2019

v4.0.4 is published.

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

Successfully merging this pull request may close these issues.

3 participants