-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into feat-trait-compress
- Loading branch information
Showing
6 changed files
with
446 additions
and
350 deletions.
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
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 |
---|---|---|
@@ -1,15 +1,35 @@ | ||
use crate::bls; | ||
use crate::{blob, bls}; | ||
|
||
mod poly; | ||
mod setup; | ||
|
||
#[cfg(test)] | ||
mod spec; | ||
|
||
pub type Proof = bls::P1; | ||
pub type Commitment = bls::P1; | ||
|
||
pub type Bytes32 = [u8; 32]; | ||
pub type Bytes48 = [u8; 48]; | ||
|
||
#[derive(Clone, Copy, Debug)] | ||
pub enum Error { | ||
Blob(blob::Error), | ||
Bls(bls::Error), | ||
} | ||
|
||
impl From<blob::Error> for Error { | ||
fn from(value: blob::Error) -> Self { | ||
Self::Blob(value) | ||
} | ||
} | ||
|
||
impl From<bls::Error> for Error { | ||
fn from(value: bls::Error) -> Self { | ||
Self::Bls(value) | ||
} | ||
} | ||
|
||
pub(crate) use poly::Polynomial; | ||
|
||
pub use setup::Setup; |
Oops, something went wrong.