-
Notifications
You must be signed in to change notification settings - Fork 316
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
Conversation
feat: separate aggregation benches from preprocessing
31d287d
to
4d9a054
Compare
filecoin-proofs/tests/api.rs
Outdated
#[test] | ||
fn test_aggregate_proof_encode_decode() -> Result<()> { | ||
// This byte vector is a natively serialized aggregate proof. | ||
let aggregate_proof_bytes = vec![ |
There was a problem hiding this comment.
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)?; |
There was a problem hiding this comment.
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]; |
There was a problem hiding this comment.
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
fix: apply review feedback
what's the state here? |
Needs review/approval |
feat: separate aggregation benches from preprocessing