iya-sts
    Preparing search index...

    Variable zcapVerifyDelegation

    zcapVerifyDelegation: (doc: any, options: any) => Promise<any> = zcapVerifyDelegation

    Type Declaration

      • (doc: any, options: any): Promise<any>
      • 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 }