interface · Browser and Node

# Statement

The public half of a proof. The verifier rebuilds it from its own data and requires an exact match.

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

Import:

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

## Declaration

interface:

```ts
interface Statement {
  /** 1 to 4 groups. The proof says the member is in one of them, not which. */
  groups: { groupId: Field; root: Field }[];
  schemaId: Field;
  /** Days since 1970-01-01 UTC. The leaf's validUntilDay must be at least this. */
  today: number;
  /** The leaf's registeredDay must be at most this. */
  registeredBy: number;
  /** Up to 4, one per attribute slot. Missing slots are "any". */
  predicates: Predicate[];
  scope: Field;
  /** How many nullifiers one member may make in this scope: 1 to 65536. */
  limit: number;
  /** What the proof is bound to (tipline's "message"). */
  signal: Field;
}
```

## Properties

**`groups` (required)**

`{ groupId: Field; root: Field; }[]`

1 to 4 groups. The proof says the member is in one of them, not which.

**`schemaId` (required)**

`bigint`

**`today` (required)**

`number`

Days since 1970-01-01 UTC. The leaf's validUntilDay must be at least this.

**`registeredBy` (required)**

`number`

The leaf's registeredDay must be at most this.

**`predicates` (required)**

`Predicate[]`

Up to 4, one per attribute slot. Missing slots are "any".

**`scope` (required)**

`bigint`

**`limit` (required)**

`number`

How many nullifiers one member may make in this scope: 1 to 65536.

**`signal` (required)**

`bigint`

What the proof is bound to (tipline's "message").

[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/Statement/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
