function · Browser and Node

# acceptMembership

Decides whether a membership proof is acceptable: the circuit is pinned, the groups are the policy's, each root is in its issuer's verified log, fresh, and the set big enough, the scope and signal are what the verifier computed itself, the statement matches the policy, and the proof verifies.

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

Import:

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

## Declaration

Signature:

```ts
acceptMembership(proof: unknown, ctx: {
    policy: AcceptPolicy;
    logs: Record<string, GroupRoot[]>;
    verifier: MembershipVerifier;
    scope: Field;
    signal: Field;
    clock: Clock;
}): Promise<Acceptance>;
```

### Parameters

- **`proof` (required)**: `unknown`
- **`ctx` (required)**: `{ policy: AcceptPolicy; logs: Record<string, GroupRoot[]>; verifier: MembershipVerifier; scope: Field; signal: Field; clock: Clock; }`

### Returns

`Promise<Acceptance>`

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