function · Browser and Node

# verifyPath

True if `leaf` at `path.index` with `path.siblings` gives `root`.

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

Import:

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

## Declaration

Signature:

```ts
verifyPath(leaf: Field, path: MerklePath, root: Field): boolean;
```

### Parameters

- **`leaf` (required)**: `bigint`
- **`path` (required)**: `MerklePath`
- **`root` (required)**: `bigint`

### Returns

`boolean`

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