Verifies a capability's delegation proof: one link from the root
capability rootTarget derives, controlled by controller.
options: cryptosuite; controller, keyId, controllerDocument;
rootTarget, expectedRootCapability, date; and publicKey (an
Ed25519 KeyObject) for Ed25519Signature2020, or suite for a JCS suite.
The compatibility suite's controller document is LOADED (from the offline
loader); a JCS suite's is handed to the purpose.
Parameters
doc: any
the capability
options: any
as above
Returns Promise<any>
a promise of jsonld-signatures' { verified, error }; a throw
is answered as { verified: false, error }
Verifies a capability's delegation proof: one link from the root capability
rootTargetderives, controlled bycontroller.options:cryptosuite;controller,keyId,controllerDocument;rootTarget,expectedRootCapability,date; andpublicKey(an Ed25519 KeyObject) forEd25519Signature2020, orsuitefor a JCS suite. The compatibility suite's controller document is LOADED (from the offline loader); a JCS suite's is handed to the purpose.