How could I successfully construct the correct values of the Merkle root, note hash path, and note commitment that actually works with Merkle-tree-involving stdlib functions and uses in Noir?
For example
1: noir/merkle.nr at 50fcb3cded8cf37403a2dc3839bf99b7df4261b5 · noir-lang/noir · GitHub
2: noir/main.nr at 50fcb3cded8cf37403a2dc3839bf99b7df4261b5 · noir-lang/noir · GitHub
In these tests, merkle roots and relating input values are already written in Prover.toml, but since my goal is to create my own app that involves these values, I’d like to know how to get the correct ones that don’t cause errors with latest nargo versions.
The only thing I found is this repo: simple shield. But those values generated from this repo’s js/ts tests don’t work with the copied circuit codes of the above tests in my nargo environment whose version is 0.6.0. I suppose it’s because that the packages such as @noir-lang/barretenberg are out of date.
Is there any repo that contains working JS/TS or solidity implementation for creating merkle root and producing the input values?