A collection of witnesses.

Constructors

Properties

Methods

Constructors

Properties

values: Uint8Array[]

Methods

  • Add a new witness to the end of the list. Returns the index (id) of the added witness. This index is part of the witness reference.

    Parameters

    • witness: Uint8Array

    Returns number

  • Add new witnesses to the end of the list. Returns the indices (ids) of the added witnesses. These indices are part of the witness reference.

    Parameters

    Returns number[]