Skip to content

Commit

Permalink
depth as signal in NextKVPairAtDepth
Browse files Browse the repository at this point in the history
  • Loading branch information
Autoparallel committed Oct 17, 2024
1 parent b9feeeb commit 18e65fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion circuits/json/interpreter.circom
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,10 @@ template NextKVPair(n) {
///
/// # Output
/// - `out`: Returns `1` for next key-value pair at specified depth.
template NextKVPairAtDepth(n, depth) {
template NextKVPairAtDepth(n) {
signal input stack[n][2];
signal input currByte;
signal input depth;
signal output out;

var logMaxDepth = log2Ceil(n+1);
Expand Down

0 comments on commit 18e65fa

Please sign in to comment.