-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: align methods for hash computation
Our current solution for hashing batches has 3 components: 1. it relies on never deserializing a batch, so that we hash the serialized message, 2. it is not resilient to hash confusion, lenght extension, etc (see #[87]). 3. it is split in two functions that disagree with each other (see #[188]). This stopgap PR does nothing about 1 & 2, but realigns the `impl Hash for Batch` so that it matches with the rest of the code base, and uses it in processor tests. THe security fixes of the batch hashing will be done in #156. Fixes #188
- Loading branch information
1 parent
5d0d4ee
commit df693b1
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters