toip.tools

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-membershipView source
TypeScriptImport
import { poseidon2 } from "@toip-tools/anon-membership";

Declaration

TypeScriptSignature
poseidon2(inputs: Field[]): Field;

Parameters

inputsrequired
bigint[]

Returns

bigint