interface · Browser and Node

# EnrollRequest

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

Import:

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

## Declaration

interface:

```ts
interface EnrollRequest {
  group: string;
  commitment: string;
  /** Anything the issuer's admit() needs to decide and to fill the leaf's attributes, such as a credential. */
  credential?: unknown;
  /** The member asks to replace a leaf they already have, with a new commitment (a rotation). admit() decides. (Additive.) */
  replace?: boolean;
}
```

## Properties

**`group` (required)**

`string`

**`commitment` (required)**

`string`

**`credential` (optional)**

`unknown`

Anything the issuer's admit() needs to decide and to fill the leaf's attributes, such as a credential.

**`replace` (optional)**

`boolean | undefined`

The member asks to replace a leaf they already have, with a new commitment (a rotation). admit() decides. (Additive.)

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