function · Browser and Node

# deriveSecret

toField(HMAC-SHA256(seed, utf8(info))).

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

Import:

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

## Declaration

Signature:

```ts
deriveSecret(seed: Uint8Array, info: string): Field;
```

### Parameters

- **`seed` (required)**: `Uint8Array<ArrayBufferLike>`
- **`info` (required)**: `string`

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