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

Function get_node_shares

ciphercore-base/src/mpc/mpc_compiler.rs:196–208  ·  view source on GitHub ↗
(
    g: Graph,
    prf_keys: Node,
    t: Type,
    node_to_share: Option<(Node, IOStatus)>,
)

Source from the content-addressed store, hash-verified

194}
195
196pub(crate) fn get_node_shares(
197 g: Graph,
198 prf_keys: Node,
199 t: Type,
200 node_to_share: Option<(Node, IOStatus)>,
201) -> Result<Vec<Node>> {
202 let mut prf_keys_vec = vec![];
203 for i in 0..PARTIES {
204 let key = g.tuple_get(prf_keys.clone(), i as u64)?;
205 prf_keys_vec.push(key);
206 }
207 recursively_generate_node_shares(g, prf_keys_vec, t, node_to_share)
208}
209
210pub(super) fn get_zero_shares(g: Graph, prf_keys: Node, t: Type) -> Result<Vec<Node>> {
211 get_node_shares(g, prf_keys, t, None)

Callers 3

share_columnFunction · 0.85
get_zero_sharesFunction · 0.85
share_nodeFunction · 0.85

Calls 4

cloneMethod · 0.80
tuple_getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected