File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,16 @@ perfDiverse.start('prove', 'sha3');
1414let { proof : proof1 } = await diverse . sha3 ( Bytes128 . fromString ( 'hello' ) ) ;
1515perfDiverse . end ( ) ;
1616
17- assert ( await verify ( proof1 , verificationKey ) , 'proof1 verification failed!' ) ;
17+ perfDiverse . start ( 'verify' , 'sha3' ) ;
18+ const isValid1 = await verify ( proof1 , verificationKey ) ;
19+ perfDiverse . end ( ) ;
20+ assert ( isValid1 , 'proof1 verification failed!' ) ;
1821
1922perfDiverse . start ( 'prove' , 'recursive' ) ;
2023let { proof : proof2 } = await diverse . recursive ( proof1 ) ;
2124perfDiverse . end ( ) ;
2225
23- assert ( await verify ( proof2 , verificationKey ) , 'proof2 verification failed!' ) ;
26+ perfDiverse . start ( 'verify' , 'recursive' ) ;
27+ const isValid2 = await verify ( proof2 , verificationKey ) ;
28+ perfDiverse . end ( ) ;
29+ assert ( isValid2 , 'proof2 verification failed!' ) ;
You can’t perform that action at this time.
0 commit comments