function · Browser and Node

# fieldToBytes

32 bytes, big-endian.

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

Import:

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

## Declaration

Signature:

```ts
fieldToBytes(f: Field): Uint8Array;
```

### Parameters

- **`f` (required)**: `bigint`

### Returns

`Uint8Array<ArrayBufferLike>`

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