function · Browser and Node

# poseidon2

Poseidon2 over BN254 as Noir's `Poseidon2::hash(inputs, inputs.length)` (noir-lang/poseidon v0.4.0).

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

Import:

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

## Declaration

Signature:

```ts
poseidon2(inputs: Field[]): Field;
```

### Parameters

- **`inputs` (required)**: `bigint[]`

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