leo/compiler/tests/group/ternary.leo

6 lines
431 B
Plaintext
Raw Normal View History

2020-06-02 03:23:13 +03:00
function main (b: bool) -> group {
const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group;
const point_2 = (1005842117974384149622370061042978581211342111653966059496918451529532134799, 79389132189982034519597104273449021362784864778548730890166152019533697186)group;
2020-06-02 03:23:13 +03:00
return if b ? point_1 : point_2
}