Converts a HashTypeLike value to its corresponding byte representation.
The hash type value to convert.
A Uint8Array containing the byte representation of the hash type.
const hashTypeBytes = hashTypeToBytes("type"); // Outputs Uint8Array [0] Copy
const hashTypeBytes = hashTypeToBytes("type"); // Outputs Uint8Array [0]
Converts a HashTypeLike value to its corresponding byte representation.