-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
Mark Builder methods as pure #1076
Conversation
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.
We can't change the interface as it would be a BC-break
Please only mark as @pure
the implementations.
Moreover I think we can mark so the whole class, IIRC
Possibly worth making a major release for such an interface addition - any PRNG stuff can't be pure though, obviously |
@Ocramius where is the PRNG here? As far as I know, only |
This is not possible, because
I'm not sure why could this be considered as a BC break, because this only makes obvious for SCA tools of what was intended to be introduced in the original PR (#979). The behavior is not changed.
There is nothing related to PRNG, the methods are just plain "setters". |
|
I know, and I'll reiterate: there are no random number generation in any currently supported Signer 🤔 |
All signatures are deterministic? They don't even factor in any random offset/salt to make brute forcing harder? 😱 |
All the doc I read state that this is by design: getting secure randomness is tricky, so it's better to only do it while generating the key. BTW, back to the topic: @b1rdex please update the |
Given this is marked as a bug fix, I've changed the target branch to 5.4.x. @b1rdex would please rebase the branch and remove the commits that aren't related to your changes? Once we do that, we're good for merge & release. Thanks everyone! |
@lcobucci done |
Fix #1075