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

Use latest rustbn.js API #312

Merged
merged 1 commit into from
Jul 20, 2018
Merged

Use latest rustbn.js API #312

merged 1 commit into from
Jul 20, 2018

Conversation

axic
Copy link
Member

@axic axic commented Jul 16, 2018

This should not be merged before the next rustbn.js release is made and package.json is updated to use the release.

@axic axic requested review from hugo-dc, holgerd77 and cdetrio July 16, 2018 21:13

module.exports = function (opts) {
assert(opts.data)

let results = {}
let data = opts.data

let inputHexStr = data.toString('hex')
let inputData = Buffer.from(inputHexStr, 'hex')
Copy link
Member Author

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 :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

@axic axic Jul 16, 2018

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')

@axic axic force-pushed the rustbn-update branch 2 times, most recently from 2ff06dd to 25eb996 Compare July 16, 2018 22:15
@axic
Copy link
Member Author

axic commented Jul 16, 2018

This passes state tests 😉

@axic
Copy link
Member Author

axic commented Jul 16, 2018

Restarting the state test to check the latest merged PR (rust 1.24 support).

@coveralls
Copy link

coveralls commented Jul 16, 2018

Coverage Status

Coverage decreased (-0.06%) to 85.689% when pulling b1712fe on rustbn-update into d92e7b5 on master.

@axic
Copy link
Member Author

axic commented Jul 19, 2018

This is waiting for the 0.2.0 release of rustbn.js

@axic axic changed the title [WIP] Use latest rustbn.js API Use latest rustbn.js API Jul 20, 2018
@axic
Copy link
Member Author

axic commented Jul 20, 2018

Rebased again after #304.

@axic
Copy link
Member Author

axic commented Jul 20, 2018

@holgerd77 ready to merge

Copy link
Member

@holgerd77 holgerd77 left a 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.

@axic axic merged commit 2fe5ec7 into master Jul 20, 2018
@axic axic deleted the rustbn-update branch July 20, 2018 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants