Closed ceedubs closed 1 year ago
I've updated these docs. I also added the following note:
| ‼️
|
| This function hashes a Unison-specific byte encoding of the message. If you
| want fine control over how the message is encoded, first convert it to Bytes
| and then use hmacBytes instead. See the documentation of hmacBytes for
| details.
The
hmacBytes
doc examples usehmac
instead ofhmacBytes
.Also the
hmac
doc examples convert the message toBytes
viatoUtf8
when they don't necessarily need to, sincehmac
takes an arbitrary type of message.