Class AtomicStatementBuilder<AttributeKey>

Builder class for constructing atomic statements about credential attributes. Provides a fluent API for adding range, membership, and reveal statements with validation.

Type Parameters

  • AttributeKey = string

Hierarchy

Implements

  • InternalBuilder<AttributeKey>

Constructors

Properties

schema: undefined | CredentialSchemaSubject

Optional schema for validating statements against credential schema.

statements: AtomicStatementV2<AttributeKey>[]

Array of atomic statements being built.

Methods

  • Add to the statement, that the given attribute should be revealed. The proof will contain the value.

    Returns

    the updated builder

    Parameters

    • attribute: AttributeKey

      the attribute that should be revealed

    Returns AtomicStatementBuilder<AttributeKey>

Generated using TypeDoc