iya-sts
    Preparing search index...

    Variable zcapDelegate

    zcapDelegate: (capability: any, options: any) => Promise<any> = zcapDelegate

    Type Declaration

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

        Error (rejects) with the libraries' reason when they refuse