Beta
Static
digestComputes a digest of the payload by:
The SHA-256 hash of the canonicalized payload, represented as a byte array.
Static
signSigns the provided payload and produces a compact JSON Web Signature (JWS).
The options required for signing.
A promise that resolves to the generated compact JWS.
Will throw an error if the specified algorithm is not supported.
Static
verifyVerifies the integrity of a message or resource's signature.
The options required for verification.
A promise that resolves to the DID of the signer if verification is successful.
Various errors related to invalid input or failed verification.
Cryptographic utility functions, such as hashing, signing, and verifying