(
s_id: usize,
total_msgs: usize,
disjoint_equalities: &[EqualWitnesses],
resp_generated: &mut BTreeSet<usize>,
)
| 1188 | } |
| 1189 | |
| 1190 | fn update_resp_generated( |
| 1191 | s_id: usize, |
| 1192 | total_msgs: usize, |
| 1193 | disjoint_equalities: &[EqualWitnesses], |
| 1194 | resp_generated: &mut BTreeSet<usize>, |
| 1195 | ) { |
| 1196 | for w_id in 0..total_msgs { |
| 1197 | let wit_ref = (s_id, w_id); |
| 1198 | for (i, eq) in disjoint_equalities.iter().enumerate() { |
| 1199 | if eq.has_wit_ref(&wit_ref) { |
| 1200 | if !resp_generated.contains(&i) { |
| 1201 | resp_generated.insert(i); |
| 1202 | } |
| 1203 | // Exit loop because equalities are disjoint |
| 1204 | break; |
| 1205 | } |
| 1206 | } |
| 1207 | } |
| 1208 | } |
| 1209 | |
| 1210 | // fn get_ve_func_args<'a, 'b: 'a>(s_idx: usize, s: &'a VerifiableEncryptionTZ21<E::G1Affine>, proof_spec: &'b ProofSpec<E>, witness_count: usize, blindings: &'b mut BTreeMap<WitnessRef, E::ScalarField>) -> Result<(Vec<E::ScalarField>, &'a [E::G1Affine], &'a ElgamalEncryptionParams<E::G1Affine>), ProofSystemError> { |
| 1211 | // let comm_key = s.get_comm_key(&proof_spec.setup_params, s_idx)?; |
nothing calls this directly
no test coverage detected