1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pragma language_version >= 0.15.0;
include "Counter";
import Foo;
export { foo, bar };
type Hash = Bytes<32>;
export type Word = Uint<64>;
ledger count: Field;
sealed ledger secret: Bytes<32>;
constructor() {}
circuit add(x: Field, y: Field): Field {
return x + y;
}
circuit declaration_only(x: Field): Field;
witness private$seed(): Bytes<32>;
struct Point {
x: Field,
y: Field,
}
enum Mode {
on,
off,
}
contract Demo {
pure circuit get(): Field;
}
module Math<#n> {
ledger value: Field;
}