We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc2bd95 commit 475f5e9Copy full SHA for 475f5e9
src/backends/plonky2/primitives/ec/curve.rs
@@ -279,14 +279,13 @@ pub struct PointTarget {
279
280
impl PointTarget {
281
pub fn to_value(&self, builder: &mut CircuitBuilder<GoldilocksField, 2>) -> ValueTarget {
282
- let hash = builder.hash_n_to_m_no_pad::<PoseidonHash>(
+ let hash = builder.hash_n_to_hash_no_pad::<PoseidonHash>(
283
self.x
284
.components
285
.iter()
286
.chain(self.u.components.iter())
287
.cloned()
288
.collect(),
289
- 4,
290
);
291
ValueTarget::from_slice(&hash)
292
}
0 commit comments