-
Notifications
You must be signed in to change notification settings - Fork 210
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
Update Keccak library to 3.0.0 #151
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.
Removing the wrapper is fine. The implementation needs to fixed - import does not match to actual call.
@EvanJRichard - our tests do not cover the following branch in HTLC.signTransactionWithHTLCUnlock
} else if (hashFunction == 2) {
All right, waiting resolution about the test for |
Rebased against |
I am cherry picking this with success on node 12.18.0 |
@algorandskiy I have added a test for |
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.
Thank you Jason. Let's rebase and merge
* Update Keccak library to 3.0.1 - Fixes #126 * Add test for htlc keccak hash function Co-authored-by: Jason Paulos <[email protected]>
The
keccak256
wrapper package is not needed as the only usage in the SDK is already guaranteed to be a buffer. So dropped it and in the process updated thekeccak
package to 3.0.0 and made it a direct dependency to fix the failure in #126 where the function overloads in the C++ library without arguments where removed from Node.js's V8 bindings.Fixes #126