Skip to content

Commit

Permalink
Add panic to sp1 verification function
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Ventura committed Oct 17, 2024
1 parent 615f15d commit e68cf10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions operator/sp1/sp1.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ package sp1
import "C"
import "unsafe"

// 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 VerifySp1Proof(proofBuffer []byte, elfBuffer []byte) bool {
panic("THIS IS THE PANIC IN SP1")
if len(proofBuffer) == 0 || len(elfBuffer) == 0 {
return false
}
Expand Down

0 comments on commit e68cf10

Please sign in to comment.