Skip to content

Commit

Permalink
Release 0.5 (#862)
Browse files Browse the repository at this point in the history
* package metadata fix

* upgrade algebra packages to 0.5.0-alpha

* place all the workspace attributes in Cargo.toml at curves root

* update individual package attributes

* use workspace dependencies

* temp comment out dev-dependencies

* bump ark-std versions

* bump ark-relations

* bump r1cs-std version

* prepare for 0.5

bump versions; remove patching

* update changelog

* prepare curves for release

bump versions

* update curves changelog

* Revert "temp comment out dev-dependencies"

This reverts commit 770479b.

* bring back missing patches

---------

Co-authored-by: Pratyush Mishra <[email protected]>
  • Loading branch information
mmagician and Pratyush authored Nov 12, 2024
1 parent b6dc180 commit 4bd448c
Show file tree
Hide file tree
Showing 42 changed files with 574 additions and 516 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

## Pending

### Breaking changes

### Features

### Improvements

### Bugfixes

## v0.5.0

- [\#772](https://github.com/arkworks-rs/algebra/pull/772) (`ark-ff`) Implementation of `mul` method for `BigInteger`.
- [\#794](https://github.com/arkworks-rs/algebra/pull/794) (`ark-ff`) Fix `wasm` compilation.
- [\#837](https://github.com/arkworks-rs/algebra/pull/837) (`ark-serialize`) Fix array deserialization panic.
Expand Down
29 changes: 13 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exclude = ["curves/**"]
resolver = "2"

[workspace.package]
version = "0.4.2"
version = "0.5.0"
authors = [ "arkworks contributors" ]
homepage = "https://arkworks.rs"
repository = "https://github.com/arkworks-rs/algebra"
Expand All @@ -35,18 +35,18 @@ rustdoc-args = [ "--html-in-header katex-header.html" ]
dependent-version = "fix"

[workspace.dependencies]
ark-ec = { version = "0.4.2", path = "./ec", default-features = false }
ark-ff = { version = "0.4.2", path = "./ff", default-features = false }
ark-ff-asm = { version = "0.4.2", path = "./ff-asm" }
ark-ff-macros = { version = "0.4.2", path = "./ff-macros" }
ark-poly = { version = "0.4.2", path = "./poly", default-features = false }
ark-serialize = { version = "0.4.2", path = "./serialize", default-features = false }
ark-serialize-derive = { version = "0.4.2", path = "./serialize-derive" }
ark-std = { version = "0.4.0", default-features = false }

ark-algebra-bench-templates = { version = "0.4.2", path = "./bench-templates", default-features = false }
ark-algebra-test-templates = { version = "0.4.2", path = "./test-templates", default-features = false }
ark-test-curves = { version = "0.4.2", path = "./test-curves", default-features = false }
ark-ec = { version = "0.5.0", path = "./ec", default-features = false }
ark-ff = { version = "0.5.0", path = "./ff", default-features = false }
ark-ff-asm = { version = "0.5.0", path = "./ff-asm" }
ark-ff-macros = { version = "0.5.0", path = "./ff-macros" }
ark-poly = { version = "0.5.0", path = "./poly", default-features = false }
ark-serialize = { version = "0.5.0", path = "./serialize", default-features = false }
ark-serialize-derive = { version = "0.5.0", path = "./serialize-derive" }
ark-std = { version = "0.5.0", default-features = false }

ark-algebra-bench-templates = { version = "0.5.0", path = "./bench-templates", default-features = false }
ark-algebra-test-templates = { version = "0.5.0", path = "./test-templates", default-features = false }
ark-test-curves = { version = "0.5.0", path = "./test-curves", default-features = false }

num-traits = { version = "0.2", default-features = false }
num-bigint = { version = "0.4", default-features = false }
Expand Down Expand Up @@ -98,6 +98,3 @@ lto = "thin"
incremental = true
debug-assertions = true
debug = true

[patch.crates-io]
ark-std = { git = "https://github.com/arkworks-rs/std/" }
2 changes: 1 addition & 1 deletion bench-templates/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ license.workspace = true
edition.workspace = true
rust-version.workspace = true
metadata.docs.rs.workspace = true
metadata.release.workspace = true
package.metadata.release.workspace = true


################################# Dependencies ################################
Expand Down
10 changes: 10 additions & 0 deletions curves/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@

### Features

### Improvements

### Bugfixes

## v0.5.0

### Breaking changes

### Features

- [\#156](https://github.com/arkworks-rs/curves/pull/156) Add the bw6-767 curve.
- [\#174](https://github.com/arkworks-rs/curves/pull/174) Add the "grumpkin" curve.

Expand Down
41 changes: 40 additions & 1 deletion curves/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,43 @@ members = [
]
resolver = "2"

[workspace.package]
version = "0.5.0"
authors = [ "arkworks contributors" ]
homepage = "https://arkworks.rs"
repository = "https://github.com/arkworks-rs/algebra"
categories = ["cryptography"]
keywords = ["cryptography", "finite-fields", "elliptic-curves" ]
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.75"

[workspace.dependencies]
ark-ec = { version = "0.5.0", path = "../ec", default-features = false }
ark-ff = { version = "0.5.0", path = "../ff", default-features = false }
ark-ff-asm = { version = "0.5.0", path = "../ff-asm" }
ark-poly = { version = "0.5.0", path = "../poly", default-features = false }
ark-serialize = { version = "0.5.0", path = "../serialize", default-features = false }
ark-algebra-test-templates = { version = "0.5.0", path = "../test-templates", default-features = false }
ark-algebra-bench-templates = { version = "0.5.0", path = "../bench-templates", default-features = false }

ark-bls12-377 = { version = "0.5.0", path = "./bls12_377", default-features = false }
ark-bls12-381 = { version = "0.5.0", path = "./bls12_381", default-features = false }
ark-ed-on-cp6-782 = { version = "0.5.0", path = "./ed_on_cp6_782", default-features = false }
ark-bn254 = { version = "0.5.0", path = "./bn254", default-features = false }
ark-mnt4-298 = { version = "0.5.0", path = "./mnt4_298", default-features = false }
ark-mnt4-753 = { version = "0.5.0", path = "./mnt4_753", default-features = false }
ark-pallas = { version = "0.5.0", path = "./pallas", default-features = false }
ark-secp256k1 = { version = "0.5.0", path = "./secp256k1" }
ark-curve25519 = { version = "0.5.0", path = "./curve25519" }

ark-curve-constraint-tests = { version = "0.5.0", path = "./curve-constraint-tests" }

ark-std = { version = "0.5.0", default-features = false }
ark-r1cs-std = { version = "0.5.0", default-features = false }
ark-relations = {version = "0.5.0", default-features = false }

[profile.release]
opt-level = 3
lto = "thin"
Expand All @@ -69,11 +106,13 @@ debug-assertions = true
debug = true

[patch.crates-io]
ark-ff = { path = "../ff" }
ark-ec = { path = "../ec" }
ark-ff = { path = "../ff" }
ark-ff-asm = { path = "../ff-asm" }
ark-poly = { path = "../poly" }
ark-serialize = { path = "../serialize" }
ark-algebra-test-templates = { path = "../test-templates" }
ark-algebra-bench-templates = { path = "../bench-templates" }
ark-curve-constraint-tests = { path = "./curve-constraint-tests" }
ark-r1cs-std = { git = "https://github.com/arkworks-rs/r1cs-std/" }
ark-std = { git = "https://github.com/arkworks-rs/std/" }
38 changes: 19 additions & 19 deletions curves/bls12_377/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
[package]
name = "ark-bls12-377"
version = "0.4.0"
authors = [ "arkworks contributors" ]
version.workspace = true
authors.workspace = true
description = "The BLS12-377 pairing-friendly elliptic curve"
homepage = "https://arkworks.rs"
repository = "https://github.com/arkworks-rs/algebra"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/ark-bls12-377/"
keywords = ["cryptography", "finite-fields", "elliptic-curves" ]
categories = ["cryptography"]
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT/Apache-2.0"
edition = "2021"
keywords.workspace = true
categories.workspace = true
include.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
ark-ff = { version= "0.4.0", default-features = false }
ark-ec = { version= "0.4.0", default-features = false }
ark-r1cs-std = { version= "0.4.0", default-features = false, optional = true }
ark-std = { version = "0.4.0", default-features = false }
ark-ff = { workspace = true }
ark-ec = { workspace = true }
ark-r1cs-std = { workspace = true, optional = true }
ark-std = { workspace = true }

[dev-dependencies]
ark-relations = { version= "0.4.0", default-features = false }
ark-serialize = { version = "0.4.0", default-features = false }
ark-algebra-test-templates = { version = "0.4.0", default-features = false }
ark-algebra-bench-templates = { version = "0.4.0", default-features = false }
ark-curve-constraint-tests = { path = "../curve-constraint-tests", default-features = false }
sha2 = { version = "0.10", default-features = false }
ark-relations = { workspace = true }
ark-serialize = { workspace = true }
ark-algebra-test-templates = { workspace = true }
ark-algebra-bench-templates = { workspace = true }
ark-curve-constraint-tests = { workspace = true }
sha2 = { version = "0.10" }

[features]
default = [ "curve" ]
Expand Down
30 changes: 15 additions & 15 deletions curves/bls12_381/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
[package]
name = "ark-bls12-381"
version = "0.4.0"
authors = [ "arkworks contributors" ]
version.workspace = true
authors.workspace = true
description = "The BLS12-381 pairing-friendly elliptic curve"
homepage = "https://arkworks.rs"
repository = "https://github.com/arkworks-rs/algebra"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/ark-bls12-381/"
keywords = ["cryptography", "finite-fields", "elliptic-curves" ]
categories = ["cryptography"]
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT/Apache-2.0"
edition = "2021"
keywords.workspace = true
categories.workspace = true
include.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
ark-ff = { version= "0.4.0", default-features = false }
ark-ec = { version= "0.4.0" }
ark-std = { version = "0.4.0", default-features = false }
ark-serialize = { version = "0.4.0", default-features = false }
ark-ff = { workspace = true }
ark-ec = { workspace = true }
ark-std = { workspace = true }
ark-serialize = { workspace = true }

[dev-dependencies]
ark-algebra-test-templates = { version = "0.4.0", default-features = false }
ark-algebra-bench-templates = { version = "0.4.0", default-features = false }
ark-algebra-test-templates = { workspace = true }
ark-algebra-bench-templates = { workspace = true }
hex = "^0.4.0"

[features]
Expand Down
36 changes: 18 additions & 18 deletions curves/bn254/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
[package]
name = "ark-bn254"
version = "0.4.0"
authors = [ "arkworks contributors" ]
version.workspace = true
authors.workspace = true
description = "The BN254 pairing-friendly elliptic curve"
homepage = "https://arkworks.rs"
repository = "https://github.com/arkworks-rs/algebra"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/ark-bn254/"
keywords = ["cryptography", "finite-fields", "elliptic-curves" ]
categories = ["cryptography"]
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT/Apache-2.0"
edition = "2021"
keywords.workspace = true
categories.workspace = true
include.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
ark-ff = { version= "0.4.0", default-features = false }
ark-ec = { version= "0.4.0", default-features = false }
ark-std = { version = "0.4.0", default-features = false }
ark-r1cs-std = { version = "0.4.0", default-features = false, optional = true }
ark-ff = { workspace = true }
ark-ec = { workspace = true }
ark-std = { workspace = true }
ark-r1cs-std = { workspace = true, optional = true }

[dev-dependencies]
ark-serialize = { version = "0.4.0", default-features = false }
ark-algebra-test-templates = { version = "0.4.0", default-features = false }
ark-algebra-bench-templates = { version = "0.4.0", default-features = false }
ark-curve-constraint-tests = { path = "../curve-constraint-tests", default-features = false }
ark-relations = { version = "0.4.0", default-features = false }
ark-serialize = { workspace = true }
ark-algebra-test-templates = { workspace = true }
ark-algebra-bench-templates = { workspace = true }
ark-curve-constraint-tests = { path = "../curve-constraint-tests" }
ark-relations = { workspace = true }

[features]
default = [ "curve" ]
Expand Down
32 changes: 16 additions & 16 deletions curves/bw6_761/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
[package]
name = "ark-bw6-761"
version = "0.4.0"
authors = [ "arkworks contributors" ]
version.workspace = true
authors.workspace = true
description = "The BW6-761 pairing-friendly elliptic curve"
homepage = "https://arkworks.rs"
repository = "https://github.com/arkworks-rs/algebra"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/ark-bw6-761/"
keywords = ["cryptography", "finite-fields", "elliptic-curves" ]
categories = ["cryptography"]
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT/Apache-2.0"
edition = "2021"
keywords.workspace = true
categories.workspace = true
include.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
ark-ff = { version= "0.4.0", default-features = false }
ark-ec = { version= "0.4.0", default-features = false }
ark-std = { version = "0.4.0", default-features = false }
ark-bls12-377 = { version = "0.4.0", path = "../bls12_377", default-features = false, features = [ "base_field" ] }
ark-ff = { workspace = true }
ark-ec = { workspace = true }
ark-std = { workspace = true }
ark-bls12-377 = { workspace = true, features = [ "base_field" ] }

[dev-dependencies]
ark-serialize = { version = "0.4.0", default-features = false }
ark-algebra-test-templates = { version = "0.4.0", default-features = false }
ark-algebra-bench-templates = { version = "0.4.0", default-features = false }
ark-serialize = { workspace = true }
ark-algebra-test-templates = { workspace = true }
ark-algebra-bench-templates = { workspace = true }

[features]
default = []
Expand Down
32 changes: 16 additions & 16 deletions curves/bw6_767/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
[package]
name = "ark-bw6-767"
version = "0.4.0"
authors = [ "arkworks contributors" ]
version.workspace = true
authors.workspace = true
description = "The BW6-767 pairing-friendly elliptic curve"
homepage = "https://arkworks.rs"
repository = "https://github.com/arkworks-rs/algebra"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/ark-bw6-767/"
keywords = ["cryptography", "finite-fields", "elliptic-curves" ]
categories = ["cryptography"]
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT/Apache-2.0"
edition = "2021"
keywords.workspace = true
categories.workspace = true
include.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
ark-ff = { version= "0.4.0", default-features = false }
ark-ec = { version= "0.4.0", default-features = false }
ark-std = { version = "0.4.0", default-features = false }
ark-bls12-381 = { version = "0.4.0", path = "../bls12_381", default-features = false, features = [ "curve" ] }
ark-ff = { workspace = true }
ark-ec = { workspace = true }
ark-std = { workspace = true }
ark-bls12-381 = { workspace = true, features = [ "curve" ] }

[dev-dependencies]
ark-serialize = { version = "0.4.0", default-features = false }
ark-algebra-test-templates = { version = "0.4.0", default-features = false }
ark-algebra-bench-templates = { version = "0.4.0", default-features = false }
ark-serialize = { workspace = true }
ark-algebra-test-templates = { workspace = true }
ark-algebra-bench-templates = { workspace = true }

[features]
default = []
Expand Down
Loading

0 comments on commit 4bd448c

Please sign in to comment.