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

crypto: clean-up impossible errors from blake2b and PublicKeyWithHash #63

Merged

Conversation

lierdakil
Copy link

@lierdakil lierdakil commented Dec 22, 2023

Since we're doing the spring clean-up in #62, might as well do this.

This PR removes impossible errors from return types in blake2b_* functions with fixed hash size, merkle_tree, and conversion from public key to public key hashes.

Doesn't touch PublicKeyWithHash interface, which includes an Error, now essentially unused, in the interest of compatibility.

crypto/src/hash.rs Outdated Show resolved Hide resolved
crypto/src/hash.rs Outdated Show resolved Hide resolved
@emturner
Copy link
Collaborator

emturner commented Jan 2, 2024

Thanks for the PR! couple of suggestions, but otherwise LGTM

@lierdakil lierdakil force-pushed the lierdakil@cleanup-blake2b-hash-errors branch from 89cfa8d to f105e32 Compare January 2, 2024 14:04
@emturner emturner merged commit 59ee9e5 into trilitech:master Jan 2, 2024
7 checks passed
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.

2 participants