Calculate the canonical hash of a dataset using the implementation of RDFC 1.0.
Note that the hash calculation's detail depend on the crypto key being used.
If the key belongs to an ECDSA key, and the corresponding curve is P-384, then
SHA-384 must be used by the algorithm. Hence the presence of the second
argument in the call.
Parameters
dataset: DatasetCore<Quad, Quad>
Optionalkey: CryptoKey
to decide whether SHA-384 should be used instead of the (default) SHA-256
Calculate the canonical hash of a dataset using the implementation of RDFC 1.0.
Note that the hash calculation's detail depend on the crypto key being used. If the key belongs to an ECDSA key, and the corresponding curve is P-384, then SHA-384 must be used by the algorithm. Hence the presence of the second argument in the call.