From 2902415d5e5fae565d86d0aea1d3e758fd7a4966 Mon Sep 17 00:00:00 2001 From: Chetany Bhardwaj Date: Sun, 25 Jan 2026 22:53:37 +0530 Subject: [PATCH] fix: add std.crypo.hash compatible constants for ssz usage --- src/ssz/poseidon_wrapper.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ssz/poseidon_wrapper.zig b/src/ssz/poseidon_wrapper.zig index 2a90443..ac2859a 100644 --- a/src/ssz/poseidon_wrapper.zig +++ b/src/ssz/poseidon_wrapper.zig @@ -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 .{