The data to hash.
The sha256 hash of the input data.
Signs a message with a key pair.
The data to sign.
Optional
keyUri: stringThe URI of the key to sign the data with.
The signature of the input data.
Verifies if a signature was produced by a key pair.
The signature to verify.
The data that was signed.
Optional
keyUri: stringThe URI of the key to use for verification.
A promise that resolves if the signature is valid, and rejects otherwise.
Returns the sha256 hash of the input data.