@@ -28,8 +28,8 @@ def get_version(self) -> PlotVersion: ...
28
28
def __bytes__ (self ) -> bytes : ...
29
29
def get_id (self ) -> bytes32 : ...
30
30
def get_qualities_for_challenge (self , challenge : bytes32 ) -> list [bytes32 ]: ...
31
- def get_partial_proofs_for_challenge (self , challenge : bytes ) -> list [bytes ]: ...
32
- def get_full_proof (self , challenge : bytes , index : int , parallel_read : bool = True ) -> bytes : ...
31
+ def get_partial_proofs_for_challenge (self , challenge : bytes32 ) -> list [bytes ]: ...
32
+ def get_full_proof (self , challenge : bytes32 , index : int , parallel_read : bool = True ) -> bytes : ...
33
33
34
34
@classmethod
35
35
def from_bytes (cls , data : bytes ) -> ProverProtocol : ...
@@ -56,8 +56,7 @@ def get_memo(self) -> bytes:
56
56
raise NotImplementedError ("V2 plot format is not yet implemented" )
57
57
58
58
def get_compression_level (self ) -> uint8 :
59
- # TODO: todo_v2_plots implement compression level retrieval
60
- raise NotImplementedError ("V2 plot format is not yet implemented" )
59
+ raise NotImplementedError ("V2 plot format does not support compression level" )
61
60
62
61
def get_version (self ) -> PlotVersion :
63
62
return PlotVersion .V2
@@ -70,15 +69,15 @@ def get_id(self) -> bytes32:
70
69
# TODO: Extract plot ID from V2 plot file
71
70
raise NotImplementedError ("V2 plot format is not yet implemented" )
72
71
73
- def get_qualities_for_challenge (self , challenge : bytes ) -> list [bytes32 ]:
72
+ def get_qualities_for_challenge (self , challenge : bytes32 ) -> list [bytes32 ]:
74
73
# TODO: todo_v2_plots Implement plot quality lookup
75
74
raise NotImplementedError ("V2 plot format is not yet implemented" )
76
75
77
- def get_partial_proofs_for_challenge (self , challenge : bytes ) -> list [bytes ]:
76
+ def get_partial_proofs_for_challenge (self , challenge : bytes32 ) -> list [bytes ]:
78
77
# TODO: todo_v2_plots Implement quality chain lookup (16 * k bits blobs)
79
78
raise NotImplementedError ("V2 plot format is not yet implemented" )
80
79
81
- def get_full_proof (self , challenge : bytes , index : int , parallel_read : bool = True ) -> bytes :
80
+ def get_full_proof (self , challenge : bytes32 , index : int , parallel_read : bool = True ) -> bytes :
82
81
# TODO: todo_v2_plots Implement plot proof generation
83
82
raise NotImplementedError ("V2 plot format require solver to get full proof" )
84
83
@@ -121,10 +120,10 @@ def get_id(self) -> bytes32:
121
120
def get_qualities_for_challenge (self , challenge : bytes32 ) -> list [bytes32 ]:
122
121
return [bytes32 (quality ) for quality in self ._disk_prover .get_qualities_for_challenge (challenge )]
123
122
124
- def get_partial_proofs_for_challenge (self , challenge : bytes ) -> list [bytes ]:
123
+ def get_partial_proofs_for_challenge (self , challenge : bytes32 ) -> list [bytes ]:
125
124
raise NotImplementedError ("V1 does not implement quality chains, only qualities" )
126
125
127
- def get_full_proof (self , challenge : bytes , index : int , parallel_read : bool = True ) -> bytes :
126
+ def get_full_proof (self , challenge : bytes32 , index : int , parallel_read : bool = True ) -> bytes :
128
127
return bytes (self ._disk_prover .get_full_proof (challenge , index , parallel_read ))
129
128
130
129
@classmethod
0 commit comments