MCPcopy Create free account
hub / github.com/docknetwork/crypto / get_responses

Method get_responses

bbs_plus/src/proof.rs:463–476  ·  view source on GitHub ↗
(
        &self,
        msg_ids: &BTreeSet<usize>,
        revealed_msg_ids: &BTreeSet<usize>,
    )

Source from the content-addressed store, hash-verified

461 }
462
463 pub fn get_responses(
464 &self,
465 msg_ids: &BTreeSet<usize>,
466 revealed_msg_ids: &BTreeSet<usize>,
467 ) -> Result<BTreeMap<usize, E::ScalarField>, BBSPlusError> {
468 let mut resps = BTreeMap::new();
469 for msg_idx in msg_ids {
470 resps.insert(
471 *msg_idx,
472 *self.get_resp_for_message(*msg_idx, revealed_msg_ids)?,
473 );
474 }
475 Ok(resps)
476 }
477
478 pub fn _verify(
479 &self,

Callers

nothing calls this directly

Calls 1

get_resp_for_messageMethod · 0.45

Tested by

no test coverage detected