Skip to content

Commit

Permalink
disallow unassigned witness
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltea committed May 10, 2024
1 parent 0350dd7 commit 626c6b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions halo2-ecc/src/ecc/hash_to_curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 626c6b2

Please sign in to comment.