reverie/
lib.rs

1#![feature(test)]
2
3extern crate test;
4
5pub use algebra::*;
6pub use mcircuit::{evaluate_composite_program, largest_wires};
7pub use mcircuit::{CombineOperation, Operation};
8
9pub mod algebra;
10pub mod crypto;
11pub mod generator;
12pub mod interpreter;
13pub mod proof;
14pub mod transcript;
15
16// players in MPC protocol
17pub const PLAYERS: usize = 8;
18
19// number of instances packed into a single share
20pub const PACKED: usize = 8;
21
22/// number of shares per batch
23/// e.g. in the case of GF2, each batch is 128-bits,
24/// hence a patch per player, per instance (64 in total) is 128 shares
25pub const BATCH_SIZE: usize = 128;
26
27/// online repetitions (divisible by 8)
28// const ONLINE_REPS: usize = 40;
29const ONLINE_REPS: usize = 40;
30
31/// total number of repetitions
32// const TOTAL_REPS: usize = 256;
33const TOTAL_REPS: usize = 256;
34
35/// preprocessing reps
36const PREPROCESSING_REPS: usize = TOTAL_REPS - ONLINE_REPS;
37
38const PACKED_REPS: usize = TOTAL_REPS / PACKED;