Skip to content

Commit 5e47ed5

Browse files
committed
chore: defined standard 4KB block size and leaf width constants. I am starting the block level architecture now
1 parent c0ada8e commit 5e47ed5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/provenance.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,9 @@ pub fn constant_time_eq(a: &[u8; 32], b: &[u8; 32]) -> bool {
4242
}
4343
result == 0
4444
}
45+
46+
/// The standard uniform block granularity size in bytes (4KB)
47+
pub const B_SIZE_4K: usize = 4096;
48+
49+
/// The byte-width constraint for individual leaf identifiers
50+
pub const TREE_LEAF_WIDTH: usize = 32;

0 commit comments

Comments
 (0)