Skip to content

Commit

Permalink
hotfix ASCII diagram of circom circuit
Browse files Browse the repository at this point in the history
the diagram incorrectly described voteWeight as a public signal,
and availableWeight as a private signal,
while in fact, voteWeight is a private signal, and availableWeight is public,
due to how `component main { public }` is defined at the end of the file

Although the ASCII diagram is just human documentation, fix it to avoid confusion
  • Loading branch information
altergui committed Dec 4, 2023
1 parent d941547 commit 2c6a25a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inputs/census.circom
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ include "/node_modules/circomlib/circuits/smt/smtverifier.circom";
/**
┌───────────┐
┌────────────────────▶lessOrEqual├──────────┐
(pub) voteWeight───────┘ └─────▲─────┘ │
(priv) voteWeight───────┘ └─────▲─────┘ │
│ │
(priv) availableWeight─┬────────────────────────────────┘ │
(pub) availableWeight─┬────────────────────────────────┘ │
│ │ ┌────┐
│ └───▶│ └┐
│ ┌────────────────────┐ ┌──────▶│ └┐
Expand Down

0 comments on commit 2c6a25a

Please sign in to comment.