leo/compiler/tests/group/ternary.leo
2020-06-01 17:23:13 -07:00

6 lines
427 B
Plaintext

function main (b: bool) -> group {
let point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group;
let point_2 = (1005842117974384149622370061042978581211342111653966059496918451529532134799, 79389132189982034519597104273449021362784864778548730890166152019533697186)group;
return if b ? point_1 : point_2
}