(
op: Operation,
party_id: IOStatus,
output_parties: Vec<IOStatus>,
t: Type,
inline_config: InlineConfig,
)
| 422 | use crate::type_inference::a2b_type_inference; |
| 423 | |
| 424 | fn prepare_context( |
| 425 | op: Operation, |
| 426 | party_id: IOStatus, |
| 427 | output_parties: Vec<IOStatus>, |
| 428 | t: Type, |
| 429 | inline_config: InlineConfig, |
| 430 | ) -> Result<Context> { |
| 431 | let input_t = if op == Operation::A2B { |
| 432 | t.clone() |
| 433 | } else { |
| 434 | a2b_type_inference(t.clone())? |
| 435 | }; |
| 436 | let c = simple_context(|g| { |
| 437 | let i = g.input(input_t)?; |
| 438 | g.add_node(vec![i], vec![], op) |
| 439 | })?; |
| 440 | |
| 441 | prepare_for_mpc_evaluation(c, vec![vec![party_id]], vec![output_parties], inline_config) |
| 442 | } |
| 443 | |
| 444 | fn prepare_input( |
| 445 | op: Operation, |
no test coverage detected