merkle_root.zk 225 B

1234567891011121314151617
  1. k = 13;
  2. field = "pallas";
  3. constant "MerkleRoot" {
  4. }
  5. witness "MerkleRoot" {
  6. Base leaf,
  7. Uint32 leaf_pos,
  8. MerklePath path,
  9. }
  10. circuit "MerkleRoot" {
  11. root = merkle_root(leaf_pos, path, leaf);
  12. # constrain_instance(root)
  13. }