Skip to content

Commit f11441a

Browse files
committed
change input type for addition and multiplication
1 parent 1521eb8 commit f11441a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/pinocchio/src/curves/bn254/addition.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)]
3030
pub 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
}

sdk/pinocchio/src/curves/bn254/multiplication.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)]
3030
pub 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
}

0 commit comments

Comments
 (0)