Converts a byte-like value to a HashType.
The byte-like value to convert.
The corresponding HashType.
Will throw an error if the input bytes do not correspond to a valid hash type.
const hashType = hashTypeFromBytes(new Uint8Array([0])); // Outputs "type" Copy
const hashType = hashTypeFromBytes(new Uint8Array([0])); // Outputs "type"
Converts a byte-like value to a HashType.