-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Remove instanceof since we can't actually create the ecurve.Point #274
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
Conversation
This is how I'm fixing my own issue #255 |
Could also be replaced with just As to why this stops |
It beats me too. As discussed over IRC, since signing is deterministic, one could replace all the sinon interception with an assertion that the signature payload is as expected. This would be a stronger test than the assertion that the sign method was called. Unfortunately, that's beyond the scope of my minimal volunteerism for now! |
It sounds to me it's more like a problem that sinon exposed which needs to be addressed over at the ecurve project. |
@glorat can you clean up (squash/rebase) the git history so we can get this merged? |
And remove the
|
That will be an exercise for my new git skills! Will try... |
Cleaned up as requested and CI passes this time thanks to the other changes. I'm agnostic as to whether you guys go with this or something else like #257. For my part, I'll be using this patch locally since it works for me. |
@dcousens the change looks good to me. Recently I have actually bumped into something like this -- our staging doesn't work because of an instanceof check: https://hive-js.herokuapp.com/. Shall we do a global remove, or alternatively replace them with verbose duck typing method checks? |
I feel like it's inconsistent to only do it here. Thoughts on params object for
|
Why HDNode? |
if (K instanceof BigInteger) { |
Closing this now as there are other proposals that are looking better |
No description provided.