-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add spcot ideal func * add cuckoo hash * add MPCOT sender * add mpcot receiver * change to next power of two * test mpcot for general indices, and fix bugs * rename extend_hash to extend_pre * comment and doc * minor change * doc and comments * add MPCOT for regular distribution * cargo clippy * finish ferret building blocks * add ideal mpcot and tests * add ideal mpcot and tests * update ideal functionalities * fmt * rename util to cuckoo * simplify errors * update * update
- Loading branch information
1 parent
9f7403b
commit a6127ce
Showing
9 changed files
with
656 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//! Errors that can occur when using the Ferret protocol. | ||
/// Errors that can occur when using the Ferret sender. | ||
#[derive(Debug, thiserror::Error)] | ||
#[error("invalid input: expected {0}")] | ||
pub struct SenderError(pub String); | ||
|
||
/// Errors that can occur when using the Ferret receiver. | ||
#[derive(Debug, thiserror::Error)] | ||
#[error("invalid input: expected {0}")] | ||
pub struct ReceiverError(pub String); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//! Messages for the Ferret protocol. | ||
use mpz_core::Block; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] | ||
/// The seed to generate Lpn matrix. | ||
pub struct LpnMatrixSeed { | ||
/// The seed. | ||
pub seed: Block, | ||
} |
Oops, something went wrong.