Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ssz/poseidon_wrapper.zig
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ pub fn PoseidonHasher(comptime Poseidon2Type: type) type {
/// Options struct for compatibility with std.crypto.hash API
pub const Options = struct {};

// std.crypto.hash-compatible constants
pub const digest_length: usize = 32;
pub const block_length: usize = 64;

/// Initialize a new hasher instance
pub fn init(_: Options) Self {
return .{
Expand Down
Loading