mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 08:13:11 +00:00
Comment for why 7 bytes
This commit is contained in:
parent
d594b8fc2d
commit
0538511c9d
@ -161,6 +161,7 @@ impl<const N: usize> From<BytesHash<N>> for u64 {
|
||||
impl<F: RichField, const N: usize> From<BytesHash<N>> for Vec<F> {
|
||||
fn from(hash: BytesHash<N>) -> Self {
|
||||
hash.0
|
||||
// Chunks of 7 bytes since 8 bytes would allow collisions.
|
||||
.chunks(7)
|
||||
.map(|bytes| {
|
||||
let mut arr = [0; 8];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user