Commit fe72775 1 parent 5f465b6 commit fe72775 Copy full SHA for fe72775
File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,11 @@ impl VerifierContext {
35
35
pub fn new ( trusted_setup : & TrustedSetup ) -> VerifierContext {
36
36
let verification_key = VerificationKey :: from ( trusted_setup) ;
37
37
38
- let multipoint_verifier =
39
- Verifier :: new ( verification_key, FIELD_ELEMENTS_PER_EXT_BLOB , CELLS_PER_EXT_BLOB ) ;
38
+ let multipoint_verifier = Verifier :: new (
39
+ verification_key,
40
+ FIELD_ELEMENTS_PER_EXT_BLOB ,
41
+ CELLS_PER_EXT_BLOB ,
42
+ ) ;
40
43
41
44
VerifierContext {
42
45
rs : ReedSolomon :: new (
@@ -296,6 +299,10 @@ mod validation {
296
299
297
300
// Check that we don't have too many cells
298
301
// ie more than we initially generated from the blob
302
+ //
303
+ // Note: Since we check that there are no duplicates and that all cell_indices
304
+ // are between 0 and CELLS_PER_EXT_BLOB. This check should never fail.
305
+ // It is kept here to be compliant with the specs.
299
306
if cell_indices. len ( ) > CELLS_PER_EXT_BLOB {
300
307
return Err ( VerifierError :: TooManyCellsReceived {
301
308
num_cells_received : cell_indices. len ( ) ,
You can’t perform that action at this time.
0 commit comments