Skip to content

Commit 1b62c06

Browse files
silathdiirThegaram0xmountaintop
authored
fix(libzkp): replace tag with rev for halo2curves in libzkp (#629)
Co-authored-by: Péter Garamvölgyi <[email protected]> Co-authored-by: HAOYUatHZ <[email protected]>
1 parent 81ae4d3 commit 1b62c06

File tree

6 files changed

+24
-21
lines changed

6 files changed

+24
-21
lines changed

common/libzkp/impl/Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/libzkp/impl/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ edition = "2021"
77
[lib]
88
crate-type = ["cdylib"]
99

10+
# `//` is used to skip https://github.com/rust-lang/cargo/issues/5478#issuecomment-522719793.
11+
[patch."https://github.com/privacy-scaling-explorations/halo2curves.git"]
12+
halo2curves = { git = 'https://github.com/privacy-scaling-explorations//halo2curves.git', rev = "9b67e19" }
1013
[patch."https://github.com/privacy-scaling-explorations/halo2.git"]
1114
halo2_proofs = { git = "https://github.com/scroll-tech/halo2.git", branch = "scroll-dev-0220" }
1215
[patch."https://github.com/privacy-scaling-explorations/poseidon.git"]
1316
poseidon = { git = "https://github.com/scroll-tech/poseidon.git", branch = "scroll-dev-0220" }
1417

1518
[dependencies]
16-
zkevm = { git = "https://github.com/scroll-tech/scroll-zkevm", rev="78ab7a7" }
17-
types = { git = "https://github.com/scroll-tech/scroll-zkevm", rev="78ab7a7" }
19+
zkevm = { git = "https://github.com/scroll-tech/scroll-prover", rev="78ab7a7" }
20+
types = { git = "https://github.com/scroll-tech/scroll-prover", rev="78ab7a7" }
1821
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2022_09_10" }
1922

2023
log = "0.4"
@@ -32,4 +35,4 @@ debug-assertions = true
3235

3336
[profile.release]
3437
opt-level = 3
35-
debug-assertions = true
38+
debug-assertions = true

common/types/message/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type Identity struct {
6363
// Unverified Unix timestamp of message creation
6464
Timestamp uint32 `json:"timestamp"`
6565
// Version is common.Version+ZkVersion. Use the following to check the latest ZkVersion version.
66-
// curl -sL https://api.github.com/repos/scroll-tech/scroll-zkevm/commits | jq -r ".[0].sha"
66+
// curl -sL https://api.github.com/repos/scroll-tech/scroll-prover/commits | jq -r ".[0].sha"
6767
Version string `json:"version"`
6868
// Random unique token generated by manager
6969
Token string `json:"token"`

common/version/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"runtime/debug"
66
)
77

8-
var tag = "v4.0.10"
8+
var tag = "v4.0.11"
99

1010
var commit = func() string {
1111
if info, ok := debug.ReadBuildInfo(); ok {
@@ -22,7 +22,7 @@ var commit = func() string {
2222
return ""
2323
}()
2424

25-
// ZkVersion is commit-id of common/libzkp/impl/cargo.lock/scroll-zkevm
25+
// ZkVersion is commit-id of common/libzkp/impl/cargo.lock/scroll-prover
2626
var ZkVersion string
2727

2828
// Version denote the version of scroll protocol, including the l2geth, relayer, coordinator, roller, contracts and etc.

coordinator/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ IMAGE_VERSION=latest
55
REPO_ROOT_DIR=./..
66

77
ifeq (4.3,$(firstword $(sort $(MAKE_VERSION) 4.3)))
8-
ZKEVM_VERSION=$(shell grep -m 1 "scroll-zkevm" ../common/libzkp/impl/Cargo.lock | cut -d "#" -f2 | cut -c-7)
8+
ZKEVM_VERSION=$(shell grep -m 1 "scroll-prover" ../common/libzkp/impl/Cargo.lock | cut -d "#" -f2 | cut -c-7)
99
HALO2_VERSION=$(shell grep -m 1 "halo2.git" ../common/libzkp/impl/Cargo.lock | cut -d "#" -f2 | cut -c-7)
1010
else
11-
ZKEVM_VERSION=$(shell grep -m 1 "scroll-zkevm" ../common/libzkp/impl/Cargo.lock | cut -d "\#" -f2 | cut -c-7)
11+
ZKEVM_VERSION=$(shell grep -m 1 "scroll-prover" ../common/libzkp/impl/Cargo.lock | cut -d "\#" -f2 | cut -c-7)
1212
HALO2_VERSION=$(shell grep -m 1 "halo2.git" ../common/libzkp/impl/Cargo.lock | cut -d "\#" -f2 | cut -c-7)
1313
endif
1414

roller/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.PHONY: lint docker clean roller mock_roller
22

33
ifeq (4.3,$(firstword $(sort $(MAKE_VERSION) 4.3)))
4-
ZKEVM_VERSION=$(shell grep -m 1 "scroll-zkevm" ../common/libzkp/impl/Cargo.lock | cut -d "#" -f2 | cut -c-7)
4+
ZKEVM_VERSION=$(shell grep -m 1 "scroll-prover" ../common/libzkp/impl/Cargo.lock | cut -d "#" -f2 | cut -c-7)
55
HALO2_VERSION=$(shell grep -m 1 "halo2.git" ../common/libzkp/impl/Cargo.lock | cut -d "#" -f2 | cut -c-7)
66
else
7-
ZKEVM_VERSION=$(shell grep -m 1 "scroll-zkevm" ../common/libzkp/impl/Cargo.lock | cut -d "\#" -f2 | cut -c-7)
7+
ZKEVM_VERSION=$(shell grep -m 1 "scroll-prover" ../common/libzkp/impl/Cargo.lock | cut -d "\#" -f2 | cut -c-7)
88
HALO2_VERSION=$(shell grep -m 1 "halo2.git" ../common/libzkp/impl/Cargo.lock | cut -d "\#" -f2 | cut -c-7)
99
endif
1010

@@ -39,7 +39,7 @@ test-gpu-prover: libzkp
3939
go test -tags="gpu ffi" -timeout 0 -v ./prover
4040

4141
lastest-zk-version:
42-
curl -sL https://api.github.com/repos/scroll-tech/scroll-zkevm/commits | jq -r ".[0].sha"
42+
curl -sL https://api.github.com/repos/scroll-tech/scroll-prover/commits | jq -r ".[0].sha"
4343

4444
lint: ## Lint the files - used for CI
4545
cp -r ../common/libzkp/interface ./prover/lib

0 commit comments

Comments
 (0)