function · Browser and Node

# nullifierOf

H(2, secret, scope, k). `k` is the rate-limit index, below the statement's limit; 0 for one per scope.

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

Import:

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

## Declaration

Signature:

```ts
nullifierOf(secret: Field, scope: Field, k?: number): Field;
```

### Parameters

**`secret` (required)**

`bigint`

**`scope` (required)**

`bigint`

**`k` (optional)**

`number`

Default: `0`

### Returns

`bigint`

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