UMIS SDK
    Preparing search index...

    Function issueDelegated

    • Issues a credential that hands part of the authority of parent on, signed by the same issuer. parent is the issuer's own full copy of the parent credential, with org, authority and delegation disclosed (what decodeCredential returns for it).

      The new credential takes its organisation from the parent, and its role from the parent unless claims.role is given. Its delegation claim carries a summary of the parent {id, status, authority, exp}, depth: parent.depth + 1 and the max_depth of the parent, so that a verifier can hold it to the parent without reaching the issuer.

      It is never wider than the parent, which is checked before anything is signed, in this order: depth (DELEGATION_DEPTH_EXCEEDED), lifetime (DELEGATION_OUTLIVES_PARENT) and authority (DELEGATION_WIDER_THAN_PARENT: every item needs a parent item with the same action, resource, unit and period, an amount that is not larger, the object restriction kept and a valid_until that does not come after the parent's). Other mistakes are INVALID_ARGUMENT, among them a start of validity (nbf, else iat) before the nbf of the parent.

      Parameters

      Returns Promise<string>