Package-level declarations

Types

Link copied to clipboard
class KeyRotationBuilder(didContext: DidDslContext, kms: KeyManagementService, kmsService: KmsService, ioDispatcher: CoroutineDispatcher = Dispatchers.IO)

Key Rotation Builder DSL.

Link copied to clipboard

Stored Credential type alias.

Link copied to clipboard

Builder for trust anchor configuration using infix syntax.

Link copied to clipboard
class TrustAnchorConfig(val metadataBuilder: TrustAnchorMetadataBuilder)

Configuration holder for trust anchor.

Link copied to clipboard

Trust anchor metadata builder.

Link copied to clipboard
class TrustBuilder(registry: TrustRegistry)

Trust Registry DSL.

Link copied to clipboard
class TrustPathFinder(val from: Did, val to: Did)

Helper class for trust path discovery using infix syntax.

Link copied to clipboard

Unified TrustWeave Configuration.

Link copied to clipboard
annotation class TrustWeaveDsl

DslMarker for the TrustWeave configuration DSL.

Link copied to clipboard
data class WorkflowResult(val did: Did, val credential: VerifiableCredential, val storedCredential: StoredCredential, val organizationResult: OrganizationResult? = null, val verificationResult: VerificationResult)

Workflow result containing all steps.

Properties

Link copied to clipboard

Infix operator to express trust relationship for any credential type.

Functions

Link copied to clipboard
infix fun TrustEvaluator.and(other: TrustEvaluator): TrustEvaluator

Policy composition operators for combining trust policies.

Link copied to clipboard

Infix operator to configure trust anchor metadata: builder because { ... }.

Link copied to clipboard
suspend fun TrustWeave.completeWorkflow(didBlock: DidBuilder.() -> Unit, credentialBlock: suspend (String) -> IssuanceResult, wallet: Wallet, organizeBlock: suspend (StoredCredential) -> OrganizationResult? = null): Result<WorkflowResult>

Extension function for complete workflow: create DID, issue, store, organize, verify.

Link copied to clipboard
suspend fun TrustWeave.createDidAndIssue(didBlock: DidBuilder.() -> Unit, credentialBlock: suspend (String) -> IssuanceResult): IssuanceResult

Extension function to create DID and issue credential in one workflow.

Link copied to clipboard
suspend fun TrustWeave.createDidIssueAndStore(didBlock: DidBuilder.() -> Unit, credentialBlock: suspend (String) -> IssuanceResult, wallet: Wallet): Result<StoredCredential>

Extension function to create DID, issue credential, and store in wallet.

Link copied to clipboard
suspend fun TrustBuilder.findTrustPath(from: Did, to: Did): TrustPath

Extension function to find trust path within TrustBuilder context.

Link copied to clipboard
operator fun TrustEvaluator.not(): TrustEvaluator

Negate a trust policy.

Link copied to clipboard
infix fun TrustEvaluator.or(other: TrustEvaluator): TrustEvaluator

Compose two trust policies with OR logic.

Link copied to clipboard

Extension function to store a credential in a wallet. Returns the credential itself as StoredCredential.

Link copied to clipboard
infix fun Did.trusts(credentialType: String): TrustAnchorBuilder

Infix operators for expressive trust DSL.

infix fun Did.trusts(credentialTypes: List<String>): TrustAnchorBuilder

Infix operator to express trust relationship for multiple credential types.

Link copied to clipboard
infix fun Did.trustsPath(target: Did): TrustPathFinder

Infix operator to find trust path: fromDid trustsPath toDid.

Link copied to clipboard
suspend fun trustWeave(name: String = "default", block: TrustWeaveConfig.Builder.() -> Unit): TrustWeaveConfig

DSL function to create a TrustWeave configuration.