1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#![feature(test)]
#[cfg(test)]
extern crate test;
#[macro_use]
mod util;
#[cfg(test)]
mod tests;
pub mod algebra;
pub mod preprocessing;
pub mod online;
mod oracle;
mod crypto;
mod consts;
mod proof;
pub use proof::{ProofGF2P64, ProofGF2P64_64, ProofGF2P64_85, ProofGF2P8};
use crate::algebra::RingElement;
#[derive(Copy, Clone, Debug)]
pub enum Instruction<E: RingElement> {
AddConst(usize, usize, E),
MulConst(usize, usize, E),
LocalOp(usize, usize),
Mul(usize, usize, usize),
Add(usize, usize, usize),
Branch(usize),
Input(usize),
Output(usize),
}
type Instructions<D> = Vec<Instruction<<D as algebra::Domain>::Scalar>>;