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

Function extract_shares

ciphercore-base/src/mpc/mpc_psi.rs:581–591  ·  view source on GitHub ↗
(data_node: Node, types_info: ColumnTypesInfo)

Source from the content-addressed store, hash-verified

579}
580
581fn extract_shares(data_node: Node, types_info: ColumnTypesInfo) -> Result<DataShares> {
582 let mut shares = vec![];
583 if is_shared(&data_node)? {
584 for share_id in 0..PARTIES as u64 {
585 shares.push(data_node.tuple_get(share_id)?);
586 }
587 } else {
588 shares.push(data_node);
589 }
590 Ok(DataShares { shares, types_info })
591}
592
593impl DataShares {
594 fn is_public(&self) -> bool {

Callers 1

instantiateMethod · 0.85

Calls 3

is_sharedFunction · 0.85
pushMethod · 0.45
tuple_getMethod · 0.45

Tested by

no test coverage detected