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: add a srs key loading bench #1474

Merged
merged 8 commits into from
Jul 6, 2021
Merged

feat: add a srs key loading bench #1474

merged 8 commits into from
Jul 6, 2021

Conversation

cryptonemo
Copy link
Collaborator

feat: separate aggregation benches from preprocessing

feat: separate aggregation benches from preprocessing
#[test]
fn test_aggregate_proof_encode_decode() -> Result<()> {
// This byte vector is a natively serialized aggregate proof.
let aggregate_proof_bytes = vec![
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably better to put into its own file and use include_bytes!

assert_eq!(aggregate_proof_bytes, aggregate_proof_bytes2.as_slice());

// Note: the native serialization format is more compact than bincode serialization, so assert that here.
let bincode_serialized_proof = serialize(&aggregate_proof)?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets actually weite the numbers as constants in here as well

porep_id,
api_version: ApiVersion::V1_1_0,
};
let comm_r: [u8; 32] = [5u8; 32];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to specify the type

@dignifiedquire
Copy link
Contributor

what's the state here?

@cryptonemo
Copy link
Collaborator Author

what's the state here?

Needs review/approval

@cryptonemo cryptonemo merged commit 64a7c43 into master Jul 6, 2021
@cryptonemo cryptonemo deleted the aggregation-benches branch July 6, 2021 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants