Wraps a bytearray, i.e. Uint8Array. Used to give distinct types to objects as most of them are bytearrays because that is what the WASM bindings accept and return.

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

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

  • Check if parameters are valid. Before verifying witness or using for proof verification, make sure the params are valid.

    Returns boolean

    true if key is valid, false otherwise