Signs a capability as ONE ZCAP delegation from the root capability its
invocationTarget derives, which controller controls.
options: cryptosuite; controller and keyId; and either, for
Ed25519Signature2020, privateKey (an Ed25519 KeyObject), date and
controllerDocument (served by the offline loader), or, for a JCS suite,
suite — the caller's jsonld-signatures suite object, which makes the
proof through oid4vc/vc_data_integrity.ts.
Parameters
capability: any
the unsigned capability
options: any
as above
Returns Promise<any>
a promise of the signed capability
Throws
Error (rejects) with the libraries' reason when they refuse
Signs a capability as ONE ZCAP delegation from the root capability its
invocationTargetderives, whichcontrollercontrols.options:cryptosuite;controllerandkeyId; and either, forEd25519Signature2020,privateKey(an Ed25519 KeyObject),dateandcontrollerDocument(served by the offline loader), or, for a JCS suite,suite— the caller's jsonld-signatures suite object, which makes the proof throughoid4vc/vc_data_integrity.ts.