function · Browser and Node

# messageOf

toField(SHA-256(JCS(\["anon-membership/v1/message", app, value\]))). Binds a proof to one use. `value` is plain JSON.

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

Import:

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

## Declaration

Signature:

```ts
messageOf(app: string, value: unknown): Field;
```

### Parameters

- **`app` (required)**: `string`
- **`value` (required)**: `unknown`

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