Package-level declarations

Types

Link copied to clipboard
class ArrayOfObjects(val blocks: List<SubjectObjectBuilder.() -> Unit>)

Wrapper type for arrays of objects to avoid JVM signature clash.

Link copied to clipboard
class SubjectBuilder(id: Iri? = null)

Builder for CredentialSubject.

Link copied to clipboard

Builder for nested objects in SubjectBuilder DSL. Provides JSON-like syntax without exposing buildJsonObject.

Link copied to clipboard

Builder for adding a single property to a subject.

Functions

Link copied to clipboard

Helper function to create arrays of objects.

Link copied to clipboard
fun CredentialProof.getFormatId(): ProofSuiteId

Get the proof suite ID from a CredentialProof.

Link copied to clipboard
fun subject(iri: String, block: SubjectBuilder.() -> Unit = {}): CredentialSubject

Create subject from IRI string.

fun subject(id: Iri? = null, block: SubjectBuilder.() -> Unit = {}): CredentialSubject

Sleek builder DSL for creating CredentialSubject with infix to syntax.

fun subject(did: Did, block: SubjectBuilder.() -> Unit = {}): CredentialSubject

Create subject from DID.

Link copied to clipboard

Extension to add properties to existing CredentialSubject.

Extension to add a single property.