diff --git a/frost-core/src/scalar_mul.rs b/frost-core/src/scalar_mul.rs index 3c5c22d2..ea441ab1 100644 --- a/frost-core/src/scalar_mul.rs +++ b/frost-core/src/scalar_mul.rs @@ -195,6 +195,10 @@ where .map(|P_opt| P_opt.map(|P| LookupTable5::>::from(&P))) .collect::>>()?; + if nafs.len() != lookup_tables.len() { + return None; + } + let mut r = ::identity(); // All NAFs will have the same size, so get it from the first