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
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(non_snake_case)]

pub mod error;

pub mod base_ot;
pub mod ot_based_multiplication;
pub mod ot_extensions;

pub mod configs;

mod aes_prng;
pub mod util;

use ark_serialize::{CanonicalDeserialize, CanonicalSerialize};
use ark_std::vec::Vec;
use serde::{Deserialize, Serialize};

pub type Key = Vec<u8>;
pub type Bit = bool;
pub type Message = Vec<u8>;

/// A bit matrix stored in row-major order
#[derive(
    Clone, Debug, PartialEq, Eq, CanonicalSerialize, CanonicalDeserialize, Serialize, Deserialize,
)]
pub struct BitMatrix(pub Vec<u8>);

pub type ParticipantId = u16;