• This procedure takes an N-tuple elements and computes its 'multituple hash', which is the result of (Poseidon) hashing the first paramTupleArity elements and subsequently hashing every successive chunk of paramTupleArity - 1 elements, prepending the previously computed hash and padding the remainder of the list with the first element to form a list of exactly paramTupleArity elements to feed the tupleHasher. All of these hashes are returned. This process mimics the behaviour of the MultiTupleModule, which chains together smaller tuples to form/represent a larger one.

    Parameters

    • paramTupleArity: number

      the arity of the output tuple

    • elements: PODValue[]

      the values forming the input tuple

    Returns bigint[]

    the list of multituple hashes

    Throws

    RangeError if paramTupleArity is outside the admissible range

Generated using TypeDoc