/// Strategy trait to support objects that produce hash outputs in various formats, e.g. raw bytes, hex output, etc.
pubtraitHasher<E> {/// Hashes the given data.
fnhash(&self, data:&[u8])->Result<Vec<u8>, E>;///Compares a known hash value with the hash of the given data.
fncompare(&self, hash:&[u8], data:&[u8])->Result<bool, E>;}