verify

suspend fun verify(delegatorDid: Did, delegateDid: Did): DelegationChainResult

Verifies a DID document delegation relationship between a delegator and delegate.

Checks that the delegator's DID document contains the delegate in its capabilityDelegation relationship list, following W3C DID Core spec.

Return

DelegationChainResult with validity and path information

Parameters

delegatorDid

Type-safe DID that grants the delegation

delegateDid

Type-safe DID that receives the delegation