function · Browser and Node

# commitmentOf

H(1, secret, groupId). The member sends only this to the issuer. Per group, so issuers can't match members.

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

Import:

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

## Declaration

Signature:

```ts
commitmentOf(secret: Field, groupId: Field): Field;
```

### Parameters

- **`secret` (required)**: `bigint`
- **`groupId` (required)**: `bigint`

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