diff --git a/integration_tests/kzg_poseidon_prover_test.go b/integration_tests/kzg_poseidon_prover_test.go index ff3543cc..3c04e5e3 100644 --- a/integration_tests/kzg_poseidon_prover_test.go +++ b/integration_tests/kzg_poseidon_prover_test.go @@ -6,12 +6,7 @@ package integration import ( - "fmt" - "io" - "os" - "os/exec" "path/filepath" - "strings" "testing" "github.com/ethereum/go-ethereum/common" @@ -66,38 +61,3 @@ func TestKZGPoseidonProver_GenerateZKProofs(t *testing.T) { }) } } - -func init() { - proverPath, _ := filepath.Abs(prPath) - zkeyFile := filepath.Join(proverPath, "snarkjs", zkeyFile) - fileID := "1ZLfhYeCXMnbk6wUiBADRAn1mZ8MI_zg-" - if _, err := os.Stat(zkeyFile); os.IsNotExist(err) { - fmt.Printf("%s not found, start downloading...\n", zkeyFile) - cookieCmd := exec.Command("curl", "-c", "./cookie", "-s", "-L", fmt.Sprintf("https://drive.google.com/uc?export=download&id=%s", fileID)) - cookieOutput, err := cookieCmd.Output() - if err != nil { - fmt.Println("Error downloading file:", err) - panic(err) - } - confirmCode := strings.TrimPrefix(strings.TrimSpace(string(cookieOutput)), "confirm=") - downloadCmd := exec.Command("curl", "-Lb", "./cookie", fmt.Sprintf("https://drive.google.com/uc?export=download&confirm=%s&id=%s", confirmCode, fileID)) - downloadOutput, err := downloadCmd.StdoutPipe() - if err != nil { - fmt.Println("Error downloading file:", err) - panic(err) - } - zkeyFileWriter, _ := os.Create(zkeyFile) - defer zkeyFileWriter.Close() - - if err := downloadCmd.Start(); err != nil { - fmt.Println("Error downloading file:", err) - panic(err) - } - - _, _ = io.Copy(zkeyFileWriter, downloadOutput) - - if err := downloadCmd.Wait(); err != nil { - fmt.Println("Error downloading file:", err) - } - } -}