Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update proof to v5 #184

Open
wants to merge 4 commits into
base: vasilis/fixture-trace
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ pub(crate) mod key_pair;
// Common utilities functions.
pub(crate) mod util;

pub use util::vec_to_byte_array;

// Common serialization utils.
pub(crate) mod serialization;
1 change: 1 addition & 0 deletions src/common/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ macro_rules! print_byte_array {

pub(crate) use print_byte_array;

/// utility function to transform a Vec to a byte array.
pub fn vec_to_byte_array<const N: usize>(vec: &[u8]) -> Result<[u8; N], Error> {
let data_len = vec.len();
match <[u8; N]>::try_from(vec) {
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ extern crate alloc;
/// Error types
mod error;

// Common types and utilities
mod common;
/// Common types and utilities
pub mod common;

// Supported Curves
mod curves;
Expand Down
2 changes: 1 addition & 1 deletion src/schemes/bbs/ciphersuites.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub(crate) trait BbsCiphersuiteParameters:
}

/// Point on G2 to be used during signature and proof verification.
fn p2() -> G2Projective {
fn bp2() -> G2Projective {
G2Projective::generator()
}

Expand Down
Loading