Given a buffer containing 32 byte poseidon leaves, return a new buffer containing the leaves and all pairs of nodes that define a merkle tree.
E.g. Input: [1][2][3][4] Output: [1][2][3][4][compress(1,2)][compress(3,4)][compress(5,6)].
The 32 byte poseidon leaves.
A tree represented by an array.
A helper class encapsulating Poseidon hash functionality.