Skip to content

Commit 2f11714

Browse files
committed
read_unsafe
1 parent 79ba485 commit 2f11714

File tree

1 file changed

+3
-3
lines changed
  • plonky2x/core/src/frontend/ecc/curve25519/curta

1 file changed

+3
-3
lines changed

plonky2x/core/src/frontend/ecc/curve25519/curta/builder.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ impl<L: PlonkParameters<D>, const D: usize> CircuitBuilder<L, D> {
4444

4545
match response {
4646
EcOpResponse::Add(c) => {
47-
let c_hint = output_stream.read::<AffinePointVariable<Curve>>(self);
47+
let c_hint = output_stream.read_unsafe::<AffinePointVariable<Curve>>(self);
4848
self.assert_is_equal(c_hint, c.clone());
4949
}
5050
EcOpResponse::ScalarMul(c) => {
51-
let c_hint = output_stream.read::<AffinePointVariable<Curve>>(self);
51+
let c_hint = output_stream.read_unsafe::<AffinePointVariable<Curve>>(self);
5252
self.assert_is_equal(c_hint, c.clone());
5353
}
5454
EcOpResponse::Decompress(point, root) => {
55-
let point_hint = output_stream.read::<AffinePointVariable<Curve>>(self);
55+
let point_hint = output_stream.read_unsafe::<AffinePointVariable<Curve>>(self);
5656
let root_hint = output_stream
5757
.read::<FieldVariable<<Curve as EllipticCurveParameters>::BaseField>>(self);
5858
self.assert_is_equal(point_hint, point.clone());

0 commit comments

Comments
 (0)