File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export const vmContributionVerificationCommand = (
99
99
lastZkeyStoragePath : string ,
100
100
verificationTranscriptStoragePathAndFilename : string
101
101
) : Array < string > => [
102
- `aws s3 cp s3://${ bucketName } /${ lastZkeyStoragePath } /var/tmp/lastZKey.zkey &>/dev/null ` ,
102
+ `aws s3 cp s3://${ bucketName } /${ lastZkeyStoragePath } /var/tmp/lastZKey.zkey` ,
103
103
`snarkjs zkvi /var/tmp/genesisZkey.zkey /var/tmp/pot.ptau /var/tmp/lastZKey.zkey > /var/tmp/verification_transcript.log` ,
104
104
`aws s3 cp /var/tmp/verification_transcript.log s3://${ bucketName } /${ verificationTranscriptStoragePathAndFilename } &>/dev/null` ,
105
105
`/var/tmp/blake3.bin /var/tmp/verification_transcript.log | awk '{print $1}'` ,
Original file line number Diff line number Diff line change @@ -613,13 +613,18 @@ export const verifycontribution = functionsV2.https.onCall(
613
613
} else {
614
614
// Retrieve the contribution hash from the command output.
615
615
lastZkeyBlake2bHash = await retrieveCommandOutput ( await createSSMClient ( ) , commandId , vmInstanceId )
616
+ const hashRegex = / [ a - f A - F 0 - 9 ] { 64 } / ;
617
+ const match = lastZkeyBlake2bHash . match ( hashRegex ) ;
618
+ lastZkeyBlake2bHash = match ! [ 0 ]
619
+
616
620
// re upload the formatted verification transcript
617
621
await uploadFileToBucket (
618
622
bucketName ,
619
623
verificationTranscriptStoragePathAndFilename ,
620
624
verificationTranscriptTemporaryLocalPath ,
621
625
true
622
626
)
627
+ // remove the local file
623
628
fs . unlinkSync ( verificationTranscriptTemporaryLocalPath )
624
629
}
625
630
You can’t perform that action at this time.
0 commit comments