-
Notifications
You must be signed in to change notification settings - Fork 80
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
Make Prove{CommitSectors, ReplicaUpdates}3Params aggregate proof type optional #1511
Conversation
b683e83
to
ed15f73
Compare
@@ -490,8 +490,8 @@ pub struct ProveReplicaUpdates3Params { | |||
pub aggregate_proof: RawBytes, | |||
// The proof type for all sector update proofs, individually or before aggregation. | |||
pub update_proofs_type: RegisteredUpdateProof, | |||
// The proof type for the aggregate proof (ignored if no aggregate proof). | |||
pub aggregate_proof_type: RegisteredAggregateProof, | |||
// The proof type for the aggregate proof (must be None if no 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.
Nit: This isn't actually true today, afaic tell -- this field is simply ignored in all cases (cuz we don't actually support aggregated PRUs yet), and so you can put whatever you want in here?
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.
Right, I'll fix so it is enforced, so that doesn't break anyone in the future when we need to.
af2e86c
to
fc78384
Compare
… optional (#1511) * Make Prove{CommitSectors, ReplicaUpdates}3Params aggregate proof type optional. * Enforce no agg proof type when not used
… optional (#1511) * Make Prove{CommitSectors, ReplicaUpdates}3Params aggregate proof type optional. * Enforce no agg proof type when not used
* Make Prove{CommitSectors, ReplicaUpdates}3Params aggregate proof type optional (#1511) * Make Prove{CommitSectors, ReplicaUpdates}3Params aggregate proof type optional. * Enforce no agg proof type when not used * Serialise bigint as idiomatic Filecoin form (#1516) Without this it naively serialises using the underlying Rust BigInt representation: [sign,[data,data,...]] --------- Co-authored-by: Alex North <[email protected]> Co-authored-by: Rod Vagg <[email protected]>
This will require a corresponding update to the FIP.