Skip to content

Commit

Permalink
Update comments with number of constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrezhniev committed Nov 26, 2023
1 parent b528758 commit fcff54a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion circuits/lib/query/query.circom
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ template Query (valueArraySize) {
signal eq <== IsEqual()([in, value[0]]);

// LessThan
signal lt <== LessThan254()([in, value[0]]);
signal lt <== LessThan254()([in, value[0]]); // 767 constraints

// lte
signal lte <== OR()(lt, eq); // lte === lt || eq
Expand Down
4 changes: 2 additions & 2 deletions circuits/offchain/credentialAtomicQueryV3OffChain.circom
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ template credentialAtomicQueryV3OffChain(issuerLevels, claimLevels, valueArraySi
/////////////////////////////////////////////////////////////////

// verify query
// 2482 constraints (Query+LessThan+ForceEqualIfEnabled)
// 1756 constraints (Query+LessThan+ForceEqualIfEnabled)
signal querySatisfied <== Query(valueArraySize)(
in <== fieldValue,
value <== value,
Expand All @@ -260,7 +260,7 @@ template credentialAtomicQueryV3OffChain(issuerLevels, claimLevels, valueArraySi
claimSchema,
verifierID,
verifierSessionID
); // 362 constraints
); // 330 constraints

/////////////////////////////////////////////////////////////////
// Modifier Operator Validation & Output Preparation
Expand Down

0 comments on commit fcff54a

Please sign in to comment.