Make all properties in T optional

Type Parameters

Hierarchy

Properties

authority: Verifier<`did:${string}:${string}`, SigAlg>

Validator must be provided a Verifier corresponding to local authority. Capability provider service will use one corresponding to own DID or it's supervisor's DID if it acts under it's authority.

This allows service identified by non did:key e.g. did:web or did:dns to pass resolved key so it does not need to be resolved at runtime.

capability: CapabilityParser<Match<C, any>>
principal: PrincipalParser

Type declaration

resolveDIDKey?: ((did) => Await<Schema.Result<`did:key:${string}`, DIDKeyResolutionError>>)

Type declaration

validateAuthorization: ((authorization) => Await<Schema.Result<Unit, Revoked>>)

Type declaration

Methods

  • Informs validator whether given capability can be issued by a given DID or whether it needs to be delegated to the issuer.

    Parameters

    Returns boolean

Generated using TypeDoc