mirror of
https://github.com/0xPARC/zk-bug-tracker.git
synced 2026-01-10 06:18:05 -05:00
Updated example code
This commit is contained in:
@@ -824,8 +824,8 @@ For example, consider the following circuit that computes a user’s new balance
|
||||
|
||||
```jsx
|
||||
template getNewBalance() {
|
||||
signal currentBalance;
|
||||
signal withdrawAmount;
|
||||
signal input currentBalance;
|
||||
signal input withdrawAmount;
|
||||
signal output newBalance;
|
||||
|
||||
newBalance <== currentBalance - withdrawAmount;
|
||||
|
||||
Reference in New Issue
Block a user