A proof of 1 or more statements and meta statements.

Hierarchy (view full)

Constructors

Properties

value: Uint8Array

Accessors

  • get bytes(): Uint8Array
  • Return the wrapped bytearray

    Returns Uint8Array

  • get hex(): string
  • Return the hex representation of the wrapped bytearray

    Returns string

  • get length(): number
  • Return the length of the wrapped bytearray

    Returns number

Methods

  • Get the ciphertext for the SAVER statement at index statementIndex. The proof involving any SAVER statement also contains the ciphertext corresponding to that statement. Will throw an error if it could not find the ciphertext or statement at that index

    Parameters

    • statementIndex: number

    Returns SaverCiphertext

  • Verify this composite proof using a ProofSpec

    Parameters

    • proofSpec: ProofSpec
    • Optionalnonce: Uint8Array

    Returns VerifyResult

  • Verify this composite proof using a QuasiProofSpecG1

    Parameters

    • proofSpec: QuasiProofSpec
    • Optionalnonce: Uint8Array
    • presVersionGt9: boolean = true

    Returns VerifyResult

  • Parameters

    Returns VerifyResult