DidDocumentDelegationVerifier
Verifies DID document delegation relationships and chains.
This verifier checks that a delegate DID has been granted capability delegation by a delegator DID according to W3C DID Core specification. It validates that the delegator's DID document contains the delegate in its capabilityDelegation relationship list.
Example Usage:
val verifier = DidDocumentDelegationVerifier(didResolver)
val result = verifier.verify(
delegatorDid = Did("did:key:delegator"),
delegateDid = Did("did:key:delegate")
)
if (result.valid) {
println("Delegation chain is valid: ${result.path}")
}Content copied to clipboard