Created
April 3, 2022 14:47
-
-
Save 0xNonCents/063a0a4bd56083947e3a1b3689fc451f to your computer and use it in GitHub Desktop.
Error when running make on pairing_benchmark() in alt_bn_example.cairo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cairo_venv) (base) nonCents> make ~/dev/starknet/cairo-alt_bn128 | |
Compiling.. | |
Running.. | |
prime 3618502788666131213697322783095070105623107215331596699973092056135872020481 | |
prime 3618502788666131213697322783095070105623107215331596699973092056135872020481 | |
prime 3618502788666131213697322783095070105623107215331596699973092056135872020481 | |
/Users/dev/starknet/cairo-alt_bn128/bigint.cairo:60:5: Error at pc=0:19: | |
Value 3618502788666131213697322783095070105320111452007718569787670432089873896748, in range check builtin 12, is out of range [0, 340282366920938463463374607431768211456). | |
assert [range_check_ptr] = MAX_SUM - (res.d0 + res.d1 + res.d2) | |
^*************************************************************^ | |
Cairo traceback (most recent call last): | |
alt_bn128_example.cairo:149:5: (pc=0:14820) | |
pairing_benchmark() | |
^*****************^ | |
alt_bn128_example.cairo:101:23: (pc=0:14374) | |
let (p1 : FQ12) = pairing(pt_g2, pt_g1) | |
^*******************^ | |
/Users/dev/starknet/cairo-alt_bn128/alt_bn128_pair.cairo:191:30: (pc=0:11095) | |
let (cast_P : GTPoint) = g1_to_gt(P) | |
^*********^ | |
/Users/dev/starknet/cairo-alt_bn128/alt_bn128_gt.cairo:208:22: (pc=0:5697) | |
let (y_iszero) = is_zero(pt.y) | |
^***********^ | |
/Users/dev/starknet/cairo-alt_bn128/alt_bn128_field.cairo:174:19: (pc=0:330) | |
let (x_inv) = nondet_bigint3() | |
^**************^ | |
make: *** [all] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment