Skip to content

Commit cca9087

Browse files
author
colinlyguo
committed
fix
1 parent d42a73d commit cca9087

File tree

6 files changed

+11
-18
lines changed

6 files changed

+11
-18
lines changed

common/libzkp/impl/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ pub unsafe extern "C" fn verify_chunk_proof(
2626

2727
fn verify_proof(proof: *const c_char, fork_name: *const c_char, task_type: TaskType) -> c_char {
2828
let fork_name_str = c_char_to_str(fork_name);
29-
// Skip verification for darwinV2 as we can't host darwinV2 and euclid verifiers on the same
30-
// binary.
31-
if fork_name_str == "darwinV2" {
32-
return true as c_char;
33-
}
34-
3529
let proof = c_char_to_vec(proof);
3630
let verifier = verifier::get_verifier(fork_name_str);
3731

coordinator/cmd/api/app/mock_app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (c *CoordinatorApp) MockConfig(store bool) error {
9393
HighVersionCircuit: &coordinatorConfig.CircuitConfig{
9494
ParamsPath: "",
9595
AssetsPath: "",
96-
ForkName: "darwinV2",
96+
ForkName: "euclidV2",
9797
MinProverVersion: "v4.4.89",
9898
},
9999
},

coordinator/conf/config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
"chunk_collection_time_sec": 180,
99
"verifier": {
1010
"high_version_circuit": {
11-
"params_path": "params",
1211
"assets_path": "assets",
13-
"fork_name": "darwinV2",
12+
"fork_name": "euclidV2",
1413
"min_prover_version": "v4.4.45"
1514
}
1615
}

coordinator/internal/logic/verifier/verifier_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestFFI(t *testing.T) {
3232
HighVersionCircuit: &config.CircuitConfig{
3333
ParamsPath: *paramsPath,
3434
AssetsPath: *assetsPathHi,
35-
ForkName: "darwinV2",
35+
ForkName: "euclidV2",
3636
MinProverVersion: "",
3737
},
3838
}
@@ -41,19 +41,19 @@ func TestFFI(t *testing.T) {
4141
as.NoError(err)
4242

4343
chunkProof1 := readChunkProof(*chunkProofPath1, as)
44-
chunkOk1, err := v.VerifyChunkProof(chunkProof1, "darwinV2")
44+
chunkOk1, err := v.VerifyChunkProof(chunkProof1, "euclidV2")
4545
as.NoError(err)
4646
as.True(chunkOk1)
4747
t.Log("Verified chunk proof 1")
4848

4949
chunkProof2 := readChunkProof(*chunkProofPath2, as)
50-
chunkOk2, err := v.VerifyChunkProof(chunkProof2, "darwinV2")
50+
chunkOk2, err := v.VerifyChunkProof(chunkProof2, "euclidV2")
5151
as.NoError(err)
5252
as.True(chunkOk2)
5353
t.Log("Verified chunk proof 2")
5454

5555
batchProof := readBatchProof(*batchProofPath, as)
56-
batchOk, err := v.VerifyBatchProof(batchProof, "darwinV2")
56+
batchOk, err := v.VerifyBatchProof(batchProof, "euclidV2")
5757
as.NoError(err)
5858
as.True(batchOk)
5959
t.Log("Verified batch proof")

coordinator/test/api_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ func testValidProof(t *testing.T) {
374374
func testInvalidProof(t *testing.T) {
375375
// Setup coordinator and ws server.
376376
coordinatorURL := randomURL()
377-
collector, httpHandler := setupCoordinator(t, 3, coordinatorURL, []string{"darwinV2"})
377+
collector, httpHandler := setupCoordinator(t, 3, coordinatorURL, []string{"euclidV2"})
378378
defer func() {
379379
collector.Stop()
380380
assert.NoError(t, httpHandler.Shutdown(context.Background()))
@@ -462,7 +462,7 @@ func testInvalidProof(t *testing.T) {
462462
func testProofGeneratedFailed(t *testing.T) {
463463
// Setup coordinator and ws server.
464464
coordinatorURL := randomURL()
465-
collector, httpHandler := setupCoordinator(t, 3, coordinatorURL, []string{"darwinV2"})
465+
collector, httpHandler := setupCoordinator(t, 3, coordinatorURL, []string{"euclidV2"})
466466
defer func() {
467467
collector.Stop()
468468
assert.NoError(t, httpHandler.Shutdown(context.Background()))
@@ -563,7 +563,7 @@ func testProofGeneratedFailed(t *testing.T) {
563563
func testTimeoutProof(t *testing.T) {
564564
// Setup coordinator and ws server.
565565
coordinatorURL := randomURL()
566-
collector, httpHandler := setupCoordinator(t, 1, coordinatorURL, []string{"darwinV2"})
566+
collector, httpHandler := setupCoordinator(t, 1, coordinatorURL, []string{"euclidV2"})
567567
defer func() {
568568
collector.Stop()
569569
assert.NoError(t, httpHandler.Shutdown(context.Background()))

rollup/internal/orm/orm_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func TestBatchOrm(t *testing.T) {
292292
err = batchOrm.UpdateProvingStatus(context.Background(), batchHash2, types.ProvingTaskVerified)
293293
assert.NoError(t, err)
294294

295-
dbProof, err := batchOrm.GetVerifiedProofByHash(context.Background(), batchHash1, "darwinV2")
295+
dbProof, err := batchOrm.GetVerifiedProofByHash(context.Background(), batchHash1, "euclidV2")
296296
assert.Error(t, err)
297297
assert.Nil(t, dbProof)
298298

@@ -458,7 +458,7 @@ func TestBundleOrm(t *testing.T) {
458458
err = db.Model(&Bundle{}).Where("hash = ?", bundle1.Hash).Update("proof", proofBytes).Error
459459
assert.NoError(t, err)
460460

461-
retrievedProof, err := bundleOrm.GetVerifiedProofByHash(context.Background(), bundle1.Hash, "darwinV2")
461+
retrievedProof, err := bundleOrm.GetVerifiedProofByHash(context.Background(), bundle1.Hash, "euclidV2")
462462
assert.NoError(t, err)
463463
assert.Equal(t, proof.Proof(), retrievedProof.Proof())
464464
})

0 commit comments

Comments
 (0)