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

Method extract_and_attach

ciphercore-base/src/mpc/mpc_psi.rs:535–544  ·  view source on GitHub ↗
(&mut self, header: &str, columns_shares: &DataShares)

Source from the content-addressed store, hash-verified

533 }
534
535 fn extract_and_attach(&mut self, header: &str, columns_shares: &DataShares) -> Result<()> {
536 if columns_shares.column_has_mask(header) {
537 self.attach_column(
538 &columns_shares.get_mask_header(header)?,
539 columns_shares.get_mask_column(header)?,
540 )?;
541 }
542 self.attach_column(header, columns_shares.get_data_column(header)?)?;
543 Ok(())
544 }
545
546 fn is_empty(&self) -> bool {
547 match self {

Callers 1

instantiateMethod · 0.80

Calls 5

column_has_maskMethod · 0.80
attach_columnMethod · 0.80
get_mask_headerMethod · 0.80
get_mask_columnMethod · 0.80
get_data_columnMethod · 0.80

Tested by

no test coverage detected