function · Browser and Node

# membershipInputs

Finds the member's leaf in one of the groups and builds the statement and witness to prove. Throws MembershipError if no group holds the leaf. Searching the whole snapshot means no request ever names an index.

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

Import:

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

## Declaration

Signature:

```ts
membershipInputs(o: MembershipInputsOptions): {
    statement: Statement;
    witness: Witness;
};
```

### Parameters

- **`o` (required)**: `MembershipInputsOptions`

### Returns

`{ statement: Statement; witness: Witness; }`

## Returned object

The returned object exposes these properties and methods.

## Properties

- **`statement` (required)**: `Statement`
- **`witness` (required)**: `Witness`

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