js-multiformats
js-multiformats copied to clipboard
add length requirements to hash functions
For security purposes we should allow hash implementations to come with hash size requirements, either a single integer or a range tuple. This would be used in the validate
function and throw if a hash was not of a secure length.