Skip to content

Commit ac48cb9

Browse files
committed
Make proof-systems a workspace dependency
1 parent 335f40e commit ac48cb9

File tree

6 files changed

+30
-63
lines changed

6 files changed

+30
-63
lines changed

Cargo.toml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ cargo-features = ["named-profiles"]
33
[workspace]
44
members = [
55
"core",
6+
"ledger",
67
"snark",
78
"p2p",
89
"p2p/libp2p-rpc-behaviour",
@@ -21,6 +22,13 @@ resolver = "2"
2122
[workspace.dependencies]
2223
mina-p2p-messages = { path = "mina-p2p-messages", features = ["hashing"] }
2324
ledger = { path = "ledger", package = "mina-tree" }
25+
mina-hasher = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
26+
mina-signer = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
27+
mina-curves = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
28+
o1-utils = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
29+
kimchi = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
30+
mina-poseidon = {git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4"}
31+
poly-commitment = {git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4"}
2432

2533
[profile.fuzz]
2634
inherits = "release"
@@ -38,15 +46,3 @@ ark-ff = { git = "https://github.com/openmina/algebra", branch = "openmina" }
3846
ark-ec = { git = "https://github.com/openmina/algebra", branch = "openmina" }
3947
ark-poly = { git = "https://github.com/openmina/algebra", branch = "openmina" }
4048
ark-serialize = { git = "https://github.com/openmina/algebra", branch = "openmina" }
41-
42-
[patch.'https://github.com/o1-labs/proof-systems']
43-
mina-hasher = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
44-
mina-signer = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
45-
mina-curves = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
46-
o1-utils = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
47-
kimchi = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
48-
mina-poseidon = {git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4"}
49-
poly-commitment = {git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4"}
50-
51-
[patch.'https://github.com/openmina/ledger']
52-
ledger = { path = "ledger", package = "mina-tree" }

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ sha2 = "0.10.6"
1212
redux = { git = "https://github.com/openmina/redux-rs.git", features = ["serde"] }
1313
tokio = { version = "1.26", features = ["sync"] }
1414

15-
mina-hasher = { git = "https://github.com/o1-labs/proof-systems" }
15+
mina-hasher = { workspace = true }
1616
mina-p2p-messages = { workspace = true }
1717
ledger = { workspace = true }

ledger/Cargo.toml

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ crate-type = ["staticlib", "cdylib", "lib"]
1616
# https://stackoverflow.com/a/73023306
1717

1818
[dependencies]
19-
mina-hasher = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
20-
mina-signer = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
21-
mina-curves = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
22-
o1-utils = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
23-
kimchi = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
24-
mina-poseidon = {git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4"}
25-
poly-commitment = {git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4"}
19+
mina-hasher = { workspace = true }
20+
mina-signer = { workspace = true }
21+
mina-curves = { workspace = true }
22+
o1-utils = { workspace = true }
23+
kimchi = { workspace = true }
24+
mina-poseidon = { workspace = true }
25+
poly-commitment = { workspace = true }
2626

2727
bs58 = "0.4.0"
2828
mina-p2p-messages = { workspace = true, features = ["hashing"] }
@@ -39,9 +39,6 @@ libc = "0.2"
3939
itertools = "0.10"
4040
tuple-map = "0.4.0"
4141

42-
# ark-ff = { version = "0.3.0", features = [ "parallel", "asm", "std" ] }
43-
# ark-serialize = { version = "0.3.0", features = [ "std" ] }
44-
4542
ark-ff = { git = "https://github.com/openmina/algebra", branch = "openmina", features = [ "parallel", "asm", "std" ] }
4643
ark-ec = { git = "https://github.com/openmina/algebra", branch = "openmina", features = [ "std" ] }
4744
ark-serialize = { git = "https://github.com/openmina/algebra", branch = "openmina", features = [ "std" ] }
@@ -105,29 +102,3 @@ inherits = "release"
105102
debug = true
106103
debug-assertions = true
107104
overflow-checks = true
108-
109-
[patch.crates-io]
110-
ark-ff = { git = "https://github.com/openmina/algebra", branch = "openmina" }
111-
ark-ec = { git = "https://github.com/openmina/algebra", branch = "openmina" }
112-
ark-poly = { git = "https://github.com/openmina/algebra", branch = "openmina" }
113-
ark-serialize = { git = "https://github.com/openmina/algebra", branch = "openmina" }
114-
# ark-ff = { path = "/home/sebastien/github/algebra/ff" }
115-
# ark-ec = { path = "/home/sebastien/github/algebra/ec" }
116-
# ark-poly = { path = "/home/sebastien/github/algebra/poly" }
117-
# ark-serialize = { path = "/home/sebastien/github/algebra/serialize" }
118-
119-
[patch.'https://github.com/o1-labs/proof-systems']
120-
mina-hasher = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
121-
mina-signer = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
122-
mina-curves = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
123-
o1-utils = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
124-
kimchi = { git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4" }
125-
mina-poseidon = {git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4"}
126-
poly-commitment = {git = "https://github.com/openmina/proof-systems", branch = "ledger-newtypes-rampup4"}
127-
128-
# mina-hasher = { path = "/home/sebastien/github/proof-systems/hasher" }
129-
# mina-signer = { path = "/home/sebastien/github/proof-systems/signer" }
130-
# mina-curves = { path = "/home/sebastien/github/proof-systems/curves" }
131-
# o1-utils = { path = "/home/sebastien/github/proof-systems/utils" }
132-
# kimchi = { path = "/home/sebastien/github/proof-systems/kimchi" }
133-
# oracle = { path = "/home/sebastien/github/proof-systems/oracle" }

mina-p2p-messages/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ base64 = "0.13.1"
1818
sha2 = { version = "0.10.2", optional = true }
1919
blake2 = { version = "0.10", optional = true }
2020

21-
mina-hasher = {git = "https://github.com/o1-labs/proof-systems", rev = "373a294cf87f94d1bb518a248fbf71364aa73526", optional = true }
22-
mina-curves = {git = "https://github.com/o1-labs/proof-systems", rev = "373a294cf87f94d1bb518a248fbf71364aa73526", optional = true }
23-
mina-signer = {git = "https://github.com/o1-labs/proof-systems", rev = "373a294cf87f94d1bb518a248fbf71364aa73526", optional = true }
24-
mina-poseidon = {git = "https://github.com/o1-labs/proof-systems", rev = "373a294cf87f94d1bb518a248fbf71364aa73526", optional = true }
25-
o1-utils = {git = "https://github.com/o1-labs/proof-systems", rev = "373a294cf87f94d1bb518a248fbf71364aa73526", optional = true }
21+
mina-hasher = { workspace = true, optional = true }
22+
mina-curves = { workspace = true, optional = true }
23+
mina-signer = { workspace = true, optional = true }
24+
mina-poseidon = { workspace = true, optional = true }
25+
o1-utils = { workspace = true, optional = true }
2626

2727
ark-ff = { version = "0.3.0", features = [ "parallel", "asm" ], optional = true }
2828

node/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ bincode = "1.3.3"
1919
hex = "0.4.3"
2020
rand = "0.8"
2121
redux = { git = "https://github.com/openmina/redux-rs.git", features = ["serde"] }
22-
mina-hasher = { git = "https://github.com/o1-labs/proof-systems" }
23-
mina-signer = { git = "https://github.com/o1-labs/proof-systems" }
22+
mina-hasher = { workspace = true }
23+
mina-signer = { workspace = true }
2424
ledger = { workspace = true }
2525
mina-p2p-messages = { workspace = true }
2626

snark/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ edition = "2021"
55
license = "Apache-2.0"
66

77
[dependencies]
8-
mina-hasher = { git = "https://github.com/o1-labs/proof-systems" }
9-
mina-signer = { git = "https://github.com/o1-labs/proof-systems" }
10-
mina-curves = { git = "https://github.com/o1-labs/proof-systems" }
11-
o1-utils = { git = "https://github.com/o1-labs/proof-systems" }
12-
kimchi = { git = "https://github.com/o1-labs/proof-systems" }
13-
poly-commitment = { git = "https://github.com/o1-labs/proof-systems" }
14-
mina-poseidon = { git = "https://github.com/o1-labs/proof-systems" }
8+
mina-hasher = { workspace = true }
9+
mina-signer = { workspace = true }
10+
mina-curves = { workspace = true }
11+
o1-utils = { workspace = true }
12+
kimchi = { workspace = true }
13+
mina-poseidon = { workspace = true }
14+
poly-commitment = { workspace = true }
1515

1616
strum_macros = "0.24.3"
1717
derive_more = "0.99.17"

0 commit comments

Comments
 (0)