diff --git a/halo2-ecc/src/ecc/hash_to_curve.rs b/halo2-ecc/src/ecc/hash_to_curve.rs index 998c465e..d4fc3587 100644 --- a/halo2-ecc/src/ecc/hash_to_curve.rs +++ b/halo2-ecc/src/ecc/hash_to_curve.rs @@ -392,9 +392,8 @@ impl ExpandMessageChip for ExpandMsgXmd { let assigned_msg = msg .map(|cell| match cell { QuantumCell::Existing(v) => v, - QuantumCell::Witness(v) => thread_pool.main().load_witness(v), QuantumCell::Constant(v) => thread_pool.main().load_constant(v), - _ => unreachable!(), + _ => panic!("passing unassigned witness to this function is insecure"), }) .collect_vec();