• This procedure takes an N-tuple elements and computes its 'tuple hash', thus chaining together smaller tuples to form/represent a larger one. It accomplishes this by hashing the values, then reducing the resulting tuple down to one element, paramTupleArity elements at a time, via the Poseidon hash function, padding the tuple with the hash of elements[0] if necessary. The precise mechanism is described in multiTupleHasher below.

    Parameters

    • paramTupleArity: number

      the arity of the output tuple

    • elements: PODValueTuple

      the values forming the input tuple

    Returns bigint

    appropriately-formed hash of the input tuple

    Throws

    RangeError if paramTupleArity is outside the admissible range

Generated using TypeDoc