Function emptyHash [src]
Prototype
pub fn emptyHash(comptime Hash: type) [Hash.digest_length]u8
Parameters
Hash: type
Source
pub fn emptyHash(comptime Hash: type) [Hash.digest_length]u8 {
var result: [Hash.digest_length]u8 = undefined;
Hash.hash(&.{}, &result, .{});
return result;
}