-
Notifications
You must be signed in to change notification settings - Fork 772
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
Use latest rustbn.js API #312
Conversation
lib/precompiled/08-ecpairing.js
Outdated
|
||
module.exports = function (opts) { | ||
assert(opts.data) | ||
|
||
let results = {} | ||
let data = opts.data | ||
|
||
let inputHexStr = data.toString('hex') | ||
let inputData = Buffer.from(inputHexStr, 'hex') |
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.
This was some funny code :)
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.
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.
I meant the fact it is doing Buffer.from(data.toString('hex'), 'hex')
2ff06dd
to
25eb996
Compare
This passes state tests 😉 |
Restarting the state test to check the latest merged PR (rust 1.24 support). |
This is waiting for the 0.2.0 release of rustbn.js |
Rebased again after #304. |
@holgerd77 ready to merge |
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.
This generally looks good and errors should be largely covered by the tests.
This should not be merged before the next rustbn.js release is made and
package.json
is updated to use the release.