We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 32e2bbe + 2902415 commit 117c0faCopy full SHA for 117c0fa
src/ssz/poseidon_wrapper.zig
@@ -56,6 +56,10 @@ pub fn PoseidonHasher(comptime Poseidon2Type: type) type {
56
/// Options struct for compatibility with std.crypto.hash API
57
pub const Options = struct {};
58
59
+ // std.crypto.hash-compatible constants
60
+ pub const digest_length: usize = 32;
61
+ pub const block_length: usize = 64;
62
+
63
/// Initialize a new hasher instance
64
pub fn init(_: Options) Self {
65
return .{
0 commit comments