File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
sdk/pinocchio/src/curves/bn254 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const ALT_BN128_G1_SUB_BE: u64 = 1; // not implemented in the syscall
2828/// It will return an error if the length is invalid, incurring the cost of the syscall.
2929#[ inline( always) ]
3030pub fn alt_bn128_g1_addition_be (
31- input : & [ u8 ] ,
31+ input : & [ u8 ; ALT_BN128_ADDITION_INPUT_SIZE ] ,
3232) -> Result < [ u8 ; ALT_BN128_ADDITION_OUTPUT_SIZE ] , ProgramError > {
3333 alt_bn128_group_op ( input, ALT_BN128_G1_ADD_BE )
3434}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const ALT_BN128_G1_MUL_BE: u64 = 2;
2828/// It will return an error if the length is invalid, incurring the cost of the syscall.
2929#[ inline( always) ]
3030pub fn alt_bn128_g1_multiplication_be (
31- input : & [ u8 ] ,
31+ input : & [ u8 ; ALT_BN128_MULTIPLICATION_INPUT_SIZE ] ,
3232) -> Result < [ u8 ; ALT_BN128_MULTIPLICATION_OUTPUT_SIZE ] , ProgramError > {
3333 alt_bn128_group_op ( input, ALT_BN128_G1_MUL_BE )
3434}
You can’t perform that action at this time.
0 commit comments