No, I don't think so. Digest is the output of a hash function, but the Hash trait is for the input to hash functions. Instead, I think blake2 should contain a struct that implements Hasher
Now that I look it up, it seems like ArrayVec implements Hash itself, so at least callers can use the exposed bytes field if they need something to put in a HashMap.
No, I don't think so.
Digest
is the output of a hash function, but theHash
trait is for the input to hash functions. Instead, I thinkblake2
should contain a struct that implementsHasher