Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(test) testing CI for operator #1284

Closed
wants to merge 12 commits into from
12 changes: 12 additions & 0 deletions operator/pkg/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,19 @@ func (o *Operator) afterHandlingBatchV3(log *servicemanager.ContractAlignedLayer
}
}

// We use the nolint directive extracted from golangci-lint to supress linting
// -> https://github.com/golangci/golangci-lint/blob/master/docs/src/docs/usage/false-positives.mdx#nolint-directive
//
//nolint:all
func (o *Operator) verify(verificationData VerificationData, results chan bool) {

// Alter the proof to make it fail
proof_len := len(verificationData.Proof)
verificationData.Proof = make([]byte, proof_len)
for i := range proof_len {
verificationData.Proof[i] = byte(i)
}

switch verificationData.ProvingSystemId {
case common.GnarkPlonkBls12_381:
verificationResult := o.verifyPlonkProofBLS12_381(verificationData.Proof, verificationData.PubInput, verificationData.VerificationKey)
Expand Down
Loading