Class Web3StatementBuilder

Builder class for constructing credential statements for the original verifiable presentation protocol. Supports both Web3 ID credentials and account/identity credentials with issuer qualifiers.

Hierarchy

  • Web3StatementBuilder

Constructors

Properties

statements: CredentialStatements = []

Array of credential statements being built.

Methods

  • Add statements for Web3 ID credentials.

    Returns

    The updated builder instance

    Parameters

    • validContractAddresses: ContractAddress[]

      Array of contract addresses that are valid issuers

    • builderCallback: ((builder: InternalBuilder<string>) => void)

      Callback function to build the statements using the provided builder

        • (builder: InternalBuilder<string>): void
        • Parameters

          • builder: InternalBuilder<string>

          Returns void

    • Optional schema: CredentialSchemaSubject

      Optional credential schema for validation

    Returns Web3StatementBuilder

Generated using TypeDoc