File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ title: Programs
44sidebar_label: Programs
55---
66
7- A **program** is a fundamental data structure for representing application logic and application state.
7+ A **program** is a fundamental artifact for representing application logic and application state.
88
99Aleo introduces a new programming language called **Aleo instructions** that enables developers to write
1010private web applications. Aleo instructions is a statically-typed programming language for
@@ -44,10 +44,10 @@ function transfer:
4444 // Input the token amount.
4545 input r2 as u64.private;
4646
47- // Checks the given token record has sufficient balance.
48- // This `sub` operation is safe, and the proof will fail
49- // if an underflow occurs . The output register `r3` holds
50- // the change amount to be returned to the sender.
47+ // The `sub` operation is safe: it checks for underflows and
48+ // halts if an underflow occurs. When an instruction like this
49+ // halts, no zero-knowledge proof is generated . The output
50+ // register `r3` holds the change amount to be returned to the sender.
5151 sub r0.amount r2 into r3;
5252
5353 // Produces a token record for the specified receiver.
You can’t perform that action at this time.
0 commit comments