TrustBuilder
Trust Registry DSL.
Provides a fluent API for managing trust anchors and discovering trust paths.
Example Usage:
val trustWeave = trustWeave {
trust {
provider("inMemory")
}
}
trustWeave.trust {
addAnchor("did:key:university") {
credentialTypes("EducationCredential")
description("Trusted university")
}
val isTrusted = isTrusted("did:key:university", "EducationCredential")
val path = findTrustPath(Did("did:key:verifier"), Did("did:key:issuer"))
}Content copied to clipboard
Functions
Link copied to clipboard
Add a trust anchor with metadata.
Add trust anchor using infix syntax with explicit DID.
Link copied to clipboard
Find a trust path between two identities (first-class type).
Link copied to clipboard
Extension function to find trust path within TrustBuilder context.
Link copied to clipboard
Get all trusted issuers for a credential type.
Link copied to clipboard
Remove a trust anchor.
Link copied to clipboard
Resolve trust path using infix syntax.