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

Update Keccak library to 3.0.0 #151

Merged
merged 4 commits into from
Oct 5, 2020
Merged

Conversation

jecassis
Copy link
Contributor

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 the keccak 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

Copy link
Contributor

@algorandskiy algorandskiy left a 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) {

@algorandskiy
Copy link
Contributor

All right, waiting resolution about the test for hashFunction == 2 case.

@algorandskiy algorandskiy self-requested a review July 14, 2020 16:10
@jecassis
Copy link
Contributor Author

Rebased against develop to resolve merge conflict in package-lock.json and took the latest version of the Keccak library.

@ryanRfox
Copy link

ryanRfox commented Sep 9, 2020

I am cherry picking this with success on node 12.18.0

@jasonpaulos
Copy link
Contributor

@algorandskiy I have added a test for hashFunction == 2.

Copy link
Contributor

@algorandskiy algorandskiy left a 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

@jasonpaulos jasonpaulos merged commit 08807c8 into algorand:develop Oct 5, 2020
jasonpaulos added a commit that referenced this pull request Oct 14, 2020
* Update Keccak library to 3.0.1

 - Fixes #126

* Add test for htlc keccak hash function

Co-authored-by: Jason Paulos <[email protected]>
@jasonpaulos jasonpaulos mentioned this pull request Nov 3, 2020
bricerisingalgorand pushed a commit to bricerisingalgorand/js-algorand-sdk that referenced this pull request Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not install with latest Node 12 LTS
4 participants