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

Bug: Derive only takes string while deriveChild takes index #33

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

junderw
Copy link
Member

@junderw junderw commented Apr 10, 2020

I doubt anyone has ever hit this bug, but it's still a bug.

No clue how we could test for it though...

@junderw junderw mentioned this pull request Apr 10, 2020
@jprichardson
Copy link
Member

jprichardson commented Apr 13, 2020

Yikes. utACK.

@junderw junderw merged commit 071109c into master Apr 13, 2020
@jprichardson jprichardson deleted the fixRareBug branch April 13, 2020 16:45
Copy link
Member

@RyanZim RyanZim left a comment

Choose a reason for hiding this comment

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

post utACK; don't have a deep understanding here, but does look like a type problem that needed fixed.

@danfinlay
Copy link

Can someone give me a guess of how rare this bug would have been, and what kinds of conditions would have triggered it? I'm investigating possible causes of another issue, and I'd like to rule this out if possible.

@junderw
Copy link
Member Author

junderw commented Aug 3, 2020

The chance of hitting this bug is 0.000000000000000000000000000000000000373 % per every derivation level.

>>> ((2**256-1) - 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141)/(2**256-1)
3.734455345040134e-39

tbh by the time anyone hits this bug the heat death of the universe will be upon us.

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.

4 participants