trustsPath
Infix operator to find trust path: fromDid trustsPath toDid.
Creates a TrustPathFinder that can be resolved within TrustBuilder context.
Example:
trustWeave.trust {
val path = resolve(verifierDid trustsPath issuerDid)
when (path) {
is TrustPath.Verified -> println("Path found: ${path.length} hops")
is TrustPath.NotFound -> println("No path found")
}
}Content copied to clipboard
Return
TrustPathFinder that can be resolved using resolve() in TrustBuilder context
Parameters
target
The target DID to find a trust path to