function taggedHash(prefix, data) {
  return sha256(tools.concat([TAGGED_HASH_PREFIXES[prefix], data]));
}
Computes a tagged hash using the specified prefix and data.

@param prefix - The prefix to use for the tagged hash. This should be one of the values from the `TaggedHashPrefix` enum.
@param data - The data to hash, provided as a `Uint8Array`.
@returns The resulting tagged hash as a `Uint8Array`.