@@ -1653,10 +1653,12 @@ impl VdafOps {
1653
1653
C : Clock ,
1654
1654
A :: AggregationParam : Send + Sync + PartialEq ,
1655
1655
A :: AggregateShare : Send + Sync ,
1656
+ A :: InputShare : Send + Sync ,
1656
1657
A :: PrepareMessage : Send + Sync + PartialEq ,
1657
1658
A :: PrepareShare : Send + Sync + PartialEq ,
1658
1659
for < ' a > A :: PrepareState :
1659
1660
Send + Sync + Encode + ParameterizedDecode < ( & ' a A , usize ) > + PartialEq ,
1661
+ A :: PublicShare : Send + Sync ,
1660
1662
A :: OutputShare : Send + Sync + PartialEq ,
1661
1663
{
1662
1664
// unwrap safety: SHA-256 computed by ring should always be 32 bytes
@@ -1892,12 +1894,12 @@ impl VdafOps {
1892
1894
} ) ;
1893
1895
1894
1896
let ( report_aggregation_state, prepare_step_result) = match init_rslt {
1895
- Ok ( ( PingPongState :: Continued ( prep_state ) , outgoing_message) ) => {
1897
+ Ok ( ( PingPongState :: Continued ( prepare_state ) , outgoing_message) ) => {
1896
1898
// Helper is not finished. Await the next message from the Leader to advance to
1897
1899
// the next step.
1898
1900
saw_continue = true ;
1899
1901
(
1900
- ReportAggregationState :: WaitingHelper ( prep_state ) ,
1902
+ ReportAggregationState :: WaitingHelper { prepare_state } ,
1901
1903
PrepareStepResult :: Continue {
1902
1904
message : outgoing_message,
1903
1905
} ,
@@ -1920,7 +1922,7 @@ impl VdafOps {
1920
1922
)
1921
1923
}
1922
1924
Err ( prepare_error) => (
1923
- ReportAggregationState :: Failed ( prepare_error) ,
1925
+ ReportAggregationState :: Failed { prepare_error } ,
1924
1926
PrepareStepResult :: Reject ( prepare_error) ,
1925
1927
) ,
1926
1928
} ;
@@ -2026,9 +2028,9 @@ impl VdafOps {
2026
2028
rsd. report_aggregation = rsd
2027
2029
. report_aggregation
2028
2030
. clone ( )
2029
- . with_state ( ReportAggregationState :: Failed (
2030
- PrepareError :: ReportReplayed ,
2031
- ) )
2031
+ . with_state ( ReportAggregationState :: Failed {
2032
+ prepare_error : PrepareError :: ReportReplayed ,
2033
+ } )
2032
2034
. with_last_prep_resp ( Some ( PrepareResp :: new (
2033
2035
* rsd. report_share . metadata ( ) . id ( ) ,
2034
2036
PrepareStepResult :: Reject ( PrepareError :: ReportReplayed ) ,
@@ -2037,9 +2039,9 @@ impl VdafOps {
2037
2039
rsd. report_aggregation = rsd
2038
2040
. report_aggregation
2039
2041
. clone ( )
2040
- . with_state ( ReportAggregationState :: Failed (
2041
- PrepareError :: BatchCollected ,
2042
- ) )
2042
+ . with_state ( ReportAggregationState :: Failed {
2043
+ prepare_error : PrepareError :: BatchCollected ,
2044
+ } )
2043
2045
. with_last_prep_resp ( Some ( PrepareResp :: new (
2044
2046
* rsd. report_share . metadata ( ) . id ( ) ,
2045
2047
PrepareStepResult :: Reject ( PrepareError :: BatchCollected ) ,
@@ -2096,9 +2098,9 @@ impl VdafOps {
2096
2098
rsd. report_aggregation = rsd
2097
2099
. report_aggregation
2098
2100
. clone ( )
2099
- . with_state ( ReportAggregationState :: Failed (
2100
- PrepareError :: BatchCollected ,
2101
- ) )
2101
+ . with_state ( ReportAggregationState :: Failed {
2102
+ prepare_error : PrepareError :: BatchCollected ,
2103
+ } )
2102
2104
. with_last_prep_resp ( Some ( PrepareResp :: new (
2103
2105
* rsd. report_share . metadata ( ) . id ( ) ,
2104
2106
PrepareStepResult :: Reject ( PrepareError :: BatchCollected ) ,
@@ -2118,9 +2120,9 @@ impl VdafOps {
2118
2120
rsd. report_aggregation = rsd
2119
2121
. report_aggregation
2120
2122
. clone( )
2121
- . with_state( ReportAggregationState :: Failed (
2122
- PrepareError :: ReportReplayed ,
2123
- ) )
2123
+ . with_state( ReportAggregationState :: Failed {
2124
+ prepare_error : PrepareError :: ReportReplayed ,
2125
+ } )
2124
2126
. with_last_prep_resp( Some ( PrepareResp :: new(
2125
2127
* rsd. report_share. metadata( ) . id( ) ,
2126
2128
PrepareStepResult :: Reject (
@@ -2204,9 +2206,11 @@ impl VdafOps {
2204
2206
A : ' static + Send + Sync ,
2205
2207
A :: AggregationParam : Send + Sync ,
2206
2208
A :: AggregateShare : Send + Sync ,
2209
+ A :: InputShare : Send + Sync ,
2207
2210
for < ' a > A :: PrepareState : Send + Sync + Encode + ParameterizedDecode < ( & ' a A , usize ) > ,
2208
2211
A :: PrepareShare : Send + Sync ,
2209
2212
A :: PrepareMessage : Send + Sync ,
2213
+ A :: PublicShare : Send + Sync ,
2210
2214
A :: OutputShare : Send + Sync ,
2211
2215
{
2212
2216
if leader_aggregation_job. step ( ) == AggregationJobStep :: from ( 0 ) {
0 commit comments