There is from_digest method which is more straightforward for probably all use cases - any serious hash engine will output an array, not a slice/vec/whatever. And in the rare scenarios where people use hash engines with crappy API they can just call .try_into().unwrap() themselves - no need to pollute our API.
There is
from_digest
method which is more straightforward for probably all use cases - any serious hash engine will output an array, not a slice/vec/whatever. And in the rare scenarios where people use hash engines with crappy API they can just call.try_into().unwrap()
themselves - no need to pollute our API.