function · Browser and Node
delegate
Issues a child of the chain's leaf, signed by the leaf's subject. The child starts as a copy of the leaf, tightened and extended. If it doesn't narrow, nothing is signed and the problems come back.
@toip-tools/mandatesView sourceimport { delegate } from "@toip-tools/mandates";
Declaration
delegate(parentChain: Mandate[], delegator: Identity, clock: Clock, o: DelegateOptions): Promise<{
mandate: Mandate;
} | {
problems: Reason[];
}>;
Parameters
parentChainrequiredMandate[]delegatorrequiredIdentityclockrequiredClockorequiredDelegateOptions