Builder

class Builder(name: String = "default")

Builder for TrustWeave configuration.

Collects DSL configuration and delegates to TrustWeaveFactory for construction.

Constructors

Link copied to clipboard
constructor(name: String = "default")

Functions

Link copied to clipboard
fun anchor(block: AnchorConfigBuilder.() -> Unit)
Link copied to clipboard
suspend fun build(): TrustWeaveConfig
Link copied to clipboard
Link copied to clipboard
fun credentialService(credentialService: CredentialService)
Link copied to clipboard
Link copied to clipboard
fun did(block: DidConfigBuilder.() -> Unit)
Link copied to clipboard
fun dispatcher(dispatcher: CoroutineDispatcher)
Link copied to clipboard
fun domain(block: DomainConfigBuilder.() -> Unit)

Attach a Trusted Domain to this TrustWeave instance. Threading a domain through enables org.trustweave.trust.TrustWeave.activeDomain and org.trustweave.trust.TrustWeave.anchorThroughDomain; without one, the legacy org.trustweave.trust.TrustWeave.blockchains surface is the only anchoring path.

Link copied to clipboard
fun factories(statusListRegistryFactory: StatusListRegistryFactory? = null, trustRegistryFactory: TrustRegistryFactory? = null, walletFactory: WalletFactory? = null)
Link copied to clipboard
fun keys(block: KeysBuilder.() -> Unit)
Link copied to clipboard
fun revocation(provider: String)
Link copied to clipboard
fun schemas(autoValidate: Boolean = false, defaultFormat: SchemaFormat = SchemaFormat.JSON_SCHEMA)

Schema configuration.

Link copied to clipboard
Link copied to clipboard
fun trust(block: TrustConfigBuilder.() -> Unit)
fun trust(provider: String)