interface · Browser and Node

# Witness

The private half.

`@toip-tools/anon-membership` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/anon-membership/src/statement.ts#L36)

Import:

```ts
import { type Witness } from "@toip-tools/anon-membership";
```

## Declaration

interface:

```ts
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

**`secret` (required)**

`bigint`

**`groupIndex` (required)**

`number`

Which of the statement's groups holds the leaf.

**`leaf` (required)**

`Leaf`

**`path` (required)**

`MerklePath`

**`messageIndex` (optional)**

`number | undefined`

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

[Usage guide](https://toip.tools/toolkit/anon-membership/#usage) · [Error handling](https://toip.tools/toolkit/anon-membership/#errors) · [All exports](https://toip.tools/toolkit/anon-membership/api/)

---

This is the Markdown version of https://toip.tools/toolkit/anon-membership/api/Witness/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
