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

chore: code reduction on doHash #377

Merged
merged 3 commits into from
Oct 10, 2024
Merged

chore: code reduction on doHash #377

merged 3 commits into from
Oct 10, 2024

Conversation

colin-axner
Copy link
Contributor

No description provided.

return nil, err
}
return blakeHash.Sum(nil), nil
// TODO: there doesn't seem to be an "official" implementation of BLAKE3 in Go,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

took the liberty of removing this comment. If desired, someone can open an issue

@@ -190,41 +190,17 @@ func doHash(hashOp HashOp, preimage []byte) ([]byte, error) {
return hashBz(crypto.RIPEMD160, preimage)
case HashOp_BITCOIN:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

wasn't mentioned in the audit, but I added code reduction here as well

Copy link
Contributor

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you @colin-axner

@damiannolan
Copy link
Contributor

Might need to push an empty commit to this to trigger CI required check!

@colin-axner colin-axner enabled auto-merge (squash) October 10, 2024 09:09
@colin-axner colin-axner merged commit c365cea into master Oct 10, 2024
5 checks passed
@colin-axner colin-axner deleted the colin/code-reduction branch October 10, 2024 09:10
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.

3 participants