mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-29 20:44:52 +03:00
15 lines
272 B
Plaintext
15 lines
272 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file:
|
|
- inputs/scalar_group.in
|
|
*/
|
|
|
|
function main(a: scalar, b: group, c: scalar) -> bool {
|
|
let d: group = 1group * a;
|
|
let e: group = a * 1group;
|
|
let f: group = b * a;
|
|
let g: group = a * b;
|
|
|
|
return a * g == d;
|
|
} |