You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automated pull of development from the
[noir](https://github.com/noir-lang/noir) programming language, a
dependency of Aztec.
BEGIN_COMMIT_OVERRIDE
chore: fix alerts on rust msrv
(#4817)
chore(ci): fix alerts on msrv issues
(#4816)
chore: run clippy (#4810)
chore: optimize poseidon2 implementation
(#4807)
fix: catch panics from EC point creation (e.g. the point is at infinity)
(#4790)
feat: Sync from aztec-packages
(#4792)
feat: lalrpop lexer prototype
(#4656)
feat(nargo): Handle call stacks for multiple Acir calls
(#4711)
fix: proper field inversion for bigints
(#4802)
feat: add `NARGO_FOREIGN_CALL_TIMEOUT` environment variable
(#4780)
chore(debugger): Docs (#4145)
feat: narrow ABI encoding errors down to target problem argument/field
(#4798)
chore: Rename 'global' to 'function' in the monomorphization pass
(#4774)
chore: Add Hir -> Ast conversion
(#4788)
fix: Fix panic when returning a zeroed unit value
(#4797)
END_COMMIT_OVERRIDE
---------
Co-authored-by: vezenovm <[email protected]>
Co-authored-by: Tom French <[email protected]>
@@ -103,9 +117,9 @@ mod grumpkin_fixed_base_scalar_mul {
103
117
let max_limb = FieldElement::from(u128::MAX);
104
118
let invalid_limb = max_limb + FieldElement::one();
105
119
106
-
let expected_error = Err(BlackBoxResolutionError::Failed(
120
+
let expected_error = Err(BlackBoxResolutionError::Failed(
107
121
BlackBoxFunc::FixedBaseScalarMul,
108
-
"Limb 0000000000000000000000000000000100000000000000000000000000000000 is not less than 2^128".into()
122
+
"Limb 0000000000000000000000000000000100000000000000000000000000000000 is not less than 2^128".into(),
109
123
));
110
124
111
125
let res = fixed_base_scalar_mul(&invalid_limb,&FieldElement::zero());
@@ -128,7 +142,23 @@ mod grumpkin_fixed_base_scalar_mul {
128
142
res,
129
143
Err(BlackBoxResolutionError::Failed(
130
144
BlackBoxFunc::FixedBaseScalarMul,
131
-
"30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47 is not a valid grumpkin scalar".into()
145
+
"30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47 is not a valid grumpkin scalar".into(),
146
+
))
147
+
);
148
+
}
149
+
150
+
#[test]
151
+
fnrejects_addition_of_points_not_in_curve(){
152
+
let x = FieldElement::from(1u128);
153
+
let y = FieldElement::from(2u128);
154
+
155
+
let res = embedded_curve_add(x, y, x, y);
156
+
157
+
assert_eq!(
158
+
res,
159
+
Err(BlackBoxResolutionError::Failed(
160
+
BlackBoxFunc::EmbeddedCurveAdd,
161
+
"Point (0000000000000000000000000000000000000000000000000000000000000001, 0000000000000000000000000000000000000000000000000000000000000002) is not on curve".into(),
0 commit comments