@@ -4,25 +4,37 @@ use std::path::Path;
4
4
5
5
use anyhow:: Result ;
6
6
use filecoin_proofs:: {
7
- verify_seal, SealRegressionRecord , SectorShape16KiB , SectorShape1GiB , SectorShape2KiB ,
8
- SectorShape32GiB , SectorShape32KiB , SectorShape4KiB , SectorShape512MiB , SectorShape64GiB ,
9
- SectorShape8MiB , SECTOR_SIZE_16_KIB , SECTOR_SIZE_1_GIB , SECTOR_SIZE_2_KIB , SECTOR_SIZE_32_GIB ,
7
+ verify_seal, SectorShape16KiB , SectorShape1GiB , SectorShape2KiB , SectorShape32GiB ,
8
+ SectorShape32KiB , SectorShape4KiB , SectorShape512MiB , SectorShape64GiB , SectorShape8MiB ,
9
+ SECTOR_SIZE_16_KIB , SECTOR_SIZE_1_GIB , SECTOR_SIZE_2_KIB , SECTOR_SIZE_32_GIB ,
10
10
SECTOR_SIZE_32_KIB , SECTOR_SIZE_4_KIB , SECTOR_SIZE_512_MIB , SECTOR_SIZE_64_GIB ,
11
11
SECTOR_SIZE_8_MIB ,
12
12
} ;
13
13
use log:: { error, info} ;
14
+ use serde:: { Deserialize , Serialize } ;
14
15
16
+ use filecoin_proofs:: { Commitment , PoRepConfig , ProverId } ;
15
17
#[ cfg( feature = "persist-regression-proofs" ) ]
16
18
use filecoin_proofs:: {
17
- MerkleTreeTrait , PoRepConfig , ProverId , SealCommitOutput , SealPreCommitOutput ,
18
- PUBLISHED_SECTOR_SIZES ,
19
+ MerkleTreeTrait , SealCommitOutput , SealPreCommitOutput , PUBLISHED_SECTOR_SIZES ,
19
20
} ;
20
- #[ cfg( feature = "persist-regression-proofs" ) ]
21
21
use storage_proofs_core:: sector:: SectorId ;
22
22
23
23
const V16_SEAL_REGRESSION_RECORDS : & str = "seal_regression_records-v16.json" ;
24
24
const V18_SEAL_REGRESSION_RECORDS : & str = "seal_regression_records-v18.json" ;
25
25
26
+ #[ derive( Debug , Clone , Serialize , Deserialize ) ]
27
+ pub ( crate ) struct SealRegressionRecord {
28
+ pub porep_config : PoRepConfig ,
29
+ pub comm_r : Commitment ,
30
+ pub comm_d : Commitment ,
31
+ pub prover_id : ProverId ,
32
+ pub sector_id : SectorId ,
33
+ pub ticket : [ u8 ; 32 ] ,
34
+ pub seed : [ u8 ; 32 ] ,
35
+ pub proof : Vec < u8 > ,
36
+ }
37
+
26
38
#[ cfg( feature = "persist-regression-proofs" ) ]
27
39
#[ allow( dead_code) ]
28
40
#[ allow( clippy:: too_many_arguments) ]
0 commit comments