Function poseidonHash

  • Hashes up to 16 scalar elements via the poseidon hashing algorithm.

    Each element must be scalar fields of the BN254 elliptic curve group.

    Parameters

    • inputs: (string | number | bigint)[]

    Returns bigint

    bigint result of the hash