From e68cf10453e8f2b1c9daae7b52b19e7bee091834 Mon Sep 17 00:00:00 2001 From: Julian Ventura Date: Thu, 17 Oct 2024 14:49:02 -0300 Subject: [PATCH] Add panic to sp1 verification function --- operator/sp1/sp1.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/operator/sp1/sp1.go b/operator/sp1/sp1.go index 64b310844..6aeb0a448 100644 --- a/operator/sp1/sp1.go +++ b/operator/sp1/sp1.go @@ -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 }