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

Function prepare_value

ciphercore-base/src/mpc/mpc_compiler.rs:1477–1483  ·  view source on GitHub ↗
(value: Value, t: Type, is_input_private: bool)

Source from the content-addressed store, hash-verified

1475 }
1476
1477 fn prepare_value(value: Value, t: Type, is_input_private: bool) -> Result<Value> {
1478 if is_input_private {
1479 let tuple = prepare_private_value(value, t)?;
1480 return Ok(Value::from_vector(tuple));
1481 }
1482 Ok(value)
1483 }
1484
1485 fn prepare_input(
1486 input_types: Vec<Type>,

Callers 1

prepare_inputFunction · 0.85

Calls 1

prepare_private_valueFunction · 0.85

Tested by

no test coverage detected