Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is trying to address #187.
Unfortunately, the tests are not passing. I suspect this has to do with me raising the upper bound for the number of bytes in a
Digest
(see here). However, the feedback provided by the failing tests doesn't let me pinpoint the root cause very easily. Since I don't know the codebase very well, I'd be happy if someone in the know could take a look.Additionally, I'm not sure if my handling of bytes is correct in all places. For example (but not limited to): my current implementation of the$2^{64} - 2^{32} + 1$ elements1. This can lead to hash collisions, depending on the type of objects being fed into the method. I'd appreciate some guidance here.
Hasher
's trait methodfn hash(bytes: &[u8])
interprets 8 bytes as a field element of the field withFootnotes
This is the only field the hash function Tip5 is defined over, so there is no need to be generic with respect to the field. ↩