MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / get_mask_column

Method get_mask_column

ciphercore-base/src/mpc/mpc_psi.rs:623–638  ·  view source on GitHub ↗
(&self, header: &str)

Source from the content-addressed store, hash-verified

621 }
622
623 fn get_mask_column(&self, header: &str) -> Result<Node> {
624 let column_t = self.types_info.get_column_type(header);
625 if !column_t.has_mask() {
626 return Err(runtime_error!("Column has no mask"));
627 }
628 if self.is_public() {
629 self.shares[0].named_tuple_get(header.into())?.tuple_get(0)
630 } else {
631 let mut shares_vec = vec![];
632 for share_id in 0..PARTIES {
633 let column_share = self.shares[share_id].named_tuple_get(header.into())?;
634 shares_vec.push(column_share.tuple_get(0)?);
635 }
636 self.get_graph().create_tuple(shares_vec)
637 }
638 }
639
640 fn get_mask_header(&self, header: &str) -> Result<String> {
641 self.types_info.get_mask_header(header)

Callers 2

extract_and_attachMethod · 0.80
instantiateMethod · 0.80

Calls 8

get_column_typeMethod · 0.80
is_publicMethod · 0.80
has_maskMethod · 0.45
tuple_getMethod · 0.45
named_tuple_getMethod · 0.45
pushMethod · 0.45
create_tupleMethod · 0.45
get_graphMethod · 0.45

Tested by

no test coverage detected