-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Rename crypto crates and properly set metadata (#21)
- Renames crates with confusing/misleading names, e.g. forks with `_ce` postfix were renamed to have `zksync_` prefix. Example: `bellman_ce` -> `zksync_bellman`. - Acknowledges sapling-crypto. - Sets the unified metadata in `Cargo.toml`. - Modifies `RELEASE.md`. > [!WARNING] > This is a breaking release ## Migration path Once released, the easiest way is to modify your `Cargo.toml`, e.g.: ``` # Whether you use `bellman` or `bellman_ce` bellman = { package = "zksync_bellman", version = "0.30.0" } ```
- Loading branch information
Showing
29 changed files
with
176 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,21 +6,26 @@ resolver = "2" | |
|
||
[workspace.package] | ||
# All the packages in the workspace should have the same version | ||
# Important: 0.29.0 is not published right now. If you want to publish, | ||
# just remove this comment and go ahead. | ||
version = "0.29.0" | ||
edition = "2021" | ||
authors = ["The Matter Labs Team <[email protected]>"] | ||
homepage = "https://zksync.io/" | ||
repository = "https://github.com/matter-labs/zksync-crypto/" | ||
license = "MIT OR Apache-2.0" | ||
keywords = ["blockchain", "zksync"] | ||
categories = ["cryptography"] | ||
|
||
[workspace.dependencies] | ||
# Local dependencies | ||
bellman = { version = "=0.29.0", path = "crates/bellman", package = "bellman_ce" } | ||
bellman = { version = "=0.29.0", path = "crates/bellman", package = "zksync_bellman" } | ||
boojum = { version = "=0.29.0", path = "crates/boojum" } | ||
zksync_solidity_vk_codegen = { version = "=0.29.0", path = "crates/codegen" } | ||
codegen-bin = { version = "=0.29.0", path = "crates/codegen-bin" } | ||
cs_derive = { version = "=0.29.0", path = "crates/cs_derive" } | ||
ff = { version = "=0.29.0", path = "crates/ff", package = "ff_ce" } | ||
ff_derive_ce = { version = "=0.29.0", path = "crates/ff_derive" } | ||
cs_derive = { version = "=0.29.0", path = "crates/cs_derive", package = "zksync_cs_derive" } | ||
ff = { version = "=0.29.0", path = "crates/ff", package = "zksync_ff" } | ||
ff_derive = { version = "=0.29.0", path = "crates/ff_derive", package = "zksync_ff_derive" } | ||
franklin-crypto = { version = "=0.29.0", path = "crates/franklin-crypto" } | ||
pairing = { version = "=0.29.0", path = "crates/pairing", package = "pairing_ce" } | ||
pairing = { version = "=0.29.0", path = "crates/pairing", package = "zksync_pairing" } | ||
rescue_poseidon = { version = "=0.29.0", path = "crates/rescue-poseidon" } | ||
snark_wrapper = { version = "=0.29.0", path = "crates/snark-wrapper" } | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
[package] | ||
authors = ["Sean Bowe <[email protected]>", "Alex Vlasov <[email protected]>", "Alex Gluchowski <[email protected]"] | ||
description = "zk-SNARK library" | ||
documentation = "https://github.com/matter-labs/bellman" | ||
homepage = "https://github.com/matter-labs/bellman" | ||
license = "MIT/Apache-2.0" | ||
name = "bellman_ce" | ||
repository = "https://github.com/matter-labs/bellman" | ||
version.workspace = true | ||
name = "zksync_bellman" | ||
description = "zk-SNARK library, based on bellman" | ||
edition = "2018" | ||
version.workspace = true | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
|
||
[lib] | ||
crate-type = ["cdylib", "lib", "staticlib"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[package] | ||
name = "boojum" | ||
version.workspace = true | ||
edition = "2021" | ||
authors = ["The Matter Labs Team <[email protected]>"] | ||
homepage = "https://zksync.io/" | ||
repository = "https://github.com/matter-labs/era-boojum" | ||
license = "MIT OR Apache-2.0" | ||
keywords = ["blockchain", "zksync"] | ||
categories = ["cryptography"] | ||
edition.workspace = true | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
description = "Boojum cryptographic library" | ||
exclude = [ "profiling-target" ] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[package] | ||
name = "cs_derive" | ||
name = "zksync_cs_derive" | ||
version.workspace = true | ||
edition = "2021" | ||
authors = ["The Matter Labs Team <[email protected]>"] | ||
homepage = "https://zksync.io/" | ||
repository = "https://github.com/matter-labs/era-boojum" | ||
license = "MIT OR Apache-2.0" | ||
keywords = ["blockchain", "zksync"] | ||
categories = ["cryptography"] | ||
edition.workspace = true | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
description = "Derive macro for boojum crate" | ||
|
||
[dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
[package] | ||
name = "ff_ce" | ||
name = "zksync_ff" | ||
version.workspace = true | ||
authors = ["Sean Bowe <[email protected]>", | ||
"Alex Gluchowski <[email protected]>", | ||
"Alex Vlasov <[email protected]>"] | ||
description = "Library for building and interfacing with finite fields" | ||
documentation = "https://docs.rs/ff/" | ||
homepage = "https://github.com/matter-labs/ff" | ||
license = "MIT/Apache-2.0" | ||
repository = "https://github.com/matter-labs/ff" | ||
edition = "2018" | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
description = "Library for building and interfacing with finite fields, based on ff" | ||
exclude = [ | ||
"tester", | ||
"asm_tester" | ||
] | ||
|
||
[dependencies] | ||
ff_derive_ce = { workspace = true, optional = true } | ||
ff_derive = { workspace = true, optional = true } | ||
|
||
byteorder = "1" | ||
rand = "0.4" | ||
|
@@ -25,5 +24,5 @@ serde = "1" | |
|
||
[features] | ||
default = [] | ||
derive = ["ff_derive_ce"] | ||
asm_derive = ["derive", "ff_derive_ce/asm"] | ||
derive = ["ff_derive"] | ||
asm_derive = ["derive", "ff_derive/asm"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
[package] | ||
name = "ff_derive_ce" | ||
name = "zksync_ff_derive" | ||
version.workspace = true | ||
authors = ["Sean Bowe <[email protected]>", | ||
"Alex Gluchowski <[email protected]>", | ||
"Alex Vlasov <[email protected]>"] | ||
description = "Procedural macro library used to build custom prime field implementations" | ||
documentation = "https://docs.rs/ff/" | ||
homepage = "https://github.com/matter-labs/ff" | ||
license = "MIT/Apache-2.0" | ||
repository = "https://github.com/matter-labs/ff" | ||
edition = "2018" | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
description = "Procedural macro library for zksync_ff, based on ff_derive" | ||
|
||
[lib] | ||
proc-macro = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
[package] | ||
authors = ["Sean Bowe <[email protected]>", "Alex Vlasov <[email protected]>", "Alex Gluchowski <[email protected]>"] | ||
description = "Cryptographic library for SNARK gadgets" | ||
homepage = "https://github.com/matter-labs/franklin-crypto" | ||
license = "MIT/Apache-2.0" | ||
name = "franklin-crypto" | ||
version.workspace = true | ||
edition = "2015" | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
description = "Cryptographic library for SNARK gadgets, based on sapling-crypto" | ||
|
||
[lib] | ||
crate-type = ["lib", "staticlib"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
[package] | ||
name = "pairing_ce" | ||
name = "zksync_pairing" | ||
version.workspace = true | ||
authors = [ | ||
"Sean Bowe <[email protected]>", | ||
"Jack Grigg <[email protected]>", | ||
"Alex Vlasov <[email protected]>", | ||
"Alex Gluchowski <[email protected]>" | ||
] | ||
license = "MIT/Apache-2.0" | ||
|
||
description = "Pairing-friendly elliptic curve library" | ||
documentation = "https://docs.rs/pairing_ce/" | ||
homepage = "https://github.com/matter-labs/pairing" | ||
repository = "https://github.com/matter-labs/pairing" | ||
edition = "2018" | ||
authors.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
description = "Pairing-friendly elliptic curve library, based on pairing crate" | ||
|
||
[dependencies] | ||
ff = { workspace = true, features = ["derive"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.