Signs the given JSON-LD document with the private key and returns the signed JSON-LD document.
Parameters
The JSON-LD document to sign.
The key ID to use in the signature. It will be used by the verifier to fetch the corresponding public key.
options: SignJsonLdOptions
Additional options for signing the document. See also SignJsonLdOptions.
Return Type
Throws
TypeError
If the private key is invalid or unsupported.