toip.tools

interface · Browser and Node

Witness

The private half.

@toip-tools/anon-membershipView source
TypeScriptImport
import { type Witness } from "@toip-tools/anon-membership";

Declaration

TypeScriptinterface
interface Witness {
  secret: Field;
  /** Which of the statement's groups holds the leaf. */
  groupIndex: number;
  leaf: Leaf;
  path: MerklePath;
  /** The rate-limit index k, below the statement's limit. Default 0. */
  messageIndex?: number;
}

Properties

secretrequired
bigint
groupIndexrequired
number

Which of the statement's groups holds the leaf.

leafrequired
Leaf
pathrequired
MerklePath
messageIndexoptional
number | undefined

The rate-limit index k, below the statement's limit. Default 0.