Skip to content

Commit

Permalink
Merge pull request #4 from paritytech/davxy-refactory
Browse files Browse the repository at this point in the history
Workspace deps
  • Loading branch information
davxy authored Oct 17, 2023
2 parents 133c947 + 3d5f8c2 commit 60c204f
Show file tree
Hide file tree
Showing 12 changed files with 179 additions and 158 deletions.
79 changes: 30 additions & 49 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 31 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,40 @@
[workspace]
resolver = "2"
members = [
"bls12_381",
"bls12_377",
"ed_on_bls12_377",
"bw6_761",
"bls12_381",
"ed_on_bls12_377",
"ed_on_bls12_381_bandersnatch",
]
resolver = "2"

[workspace.package]
version = "0.4.1-beta"
authors = [
"Parity Technologies <[email protected]>",
"Achim Schneider <[email protected]>",
"Davide Galassi <[email protected]>"
]
repository = "https://github.com/paritytech/substrate-curves"
keywords = ["cryptography", "elliptic-curves", "pairing", "arkworks", "substrate"]
categories = ["cryptography"]
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT/Apache-2.0"
edition = "2021"


[workspace.dependencies]
ark-std = { version = "0.4.0", default-features = false }
sp-ark-bls12-377 = { git = "https://github.com/paritytech/ark-substrate", default-features = false, features = ["scale-fast"] }
sp-ark-bls12-381 = { git = "https://github.com/paritytech/ark-substrate", default-features = false, features = ["scale-fast"] }
sp-ark-bw6-761 = { git = "https://github.com/paritytech/ark-substrate", default-features = false, features = ["scale-fast"] }
sp-ark-ed-on-bls12-377 = { git = "https://github.com/paritytech/ark-substrate", default-features = false, features = ["scale-fast"] }
sp-ark-ed-on-bls12-381-bandersnatch = { git = "https://github.com/paritytech/ark-substrate", default-features = false, features = ["scale-fast"] }
sp-crypto-ec-utils = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false }
ark-algebra-test-templates = { version = "0.4.2", default-features = false }
ark-ff = { version = "0.4.2", default-features = false }
ark-ec = { version = "0.4.2", default-features = false }
ark-serialize = { version = "0.4.2", default-features = false }

[profile.release]
opt-level = 3
Expand Down
42 changes: 21 additions & 21 deletions bls12_377/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
[package]
name = "sp-bls12-377"
version = "0.4.0-alpha"
authors = ["Parity Technologies <[email protected]>", "Achim Schneider <[email protected]>", "arkworks contributors" ]
repository = "https://github.com/paritytech/substrate-curves"
description = "The BLS12-377 pairing-friendly elliptic curve, optimized for Substrate"
keywords = ["cryptography", "finite-fields", "elliptic-curves", "substrate" ]
categories = ["cryptography"]
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT/Apache-2.0"
edition = "2021"
version.workspace = true
authors.workspace = true
repository.workspace = true
keywords.workspace = true
categories.workspace = true
include.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
sp-ark-bls12-377 = { git = "https://github.com/paritytech/ark-substrate", default-features = false, features = ["scale-fast"] }
sp-crypto-ec-utils = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false }
ark-std = { version = "0.4.0", default-features = false }
sp-ark-bls12-377.workspace = true
ark-std.workspace = true
sp-crypto-ec-utils.workspace = true

[dev-dependencies]
ark-ff = { version = "0.4.2", default-features = false }
ark-ec = { version = "0.4.2", default-features = false }
ark-algebra-test-templates = { version = "0.4.2", default-features = false }
ark-serialize = { version = "0.4.2", default-features = false }
ark-ff.workspace = true
ark-ec.workspace = true
ark-serialize.workspace = true
ark-algebra-test-templates.workspace = true

[features]
default = [ "std" ]
std = [
"sp-ark-bls12-377/std",
"sp-crypto-ec-utils/std",
"ark-std/std",
"ark-ff/std",
"ark-ec/std",
std = [
"ark-algebra-test-templates/std",
"ark-ec/std",
"ark-ff/std",
"ark-serialize/std",
"ark-std/std",
"sp-ark-bls12-377/std",
"sp-crypto-ec-utils/std",
]
9 changes: 9 additions & 0 deletions bls12_377/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![deny(
warnings,
unused,
future_incompatible,
nonstandard_style,
rust_2018_idioms,
unsafe_code
)]
#![allow(clippy::result_unit_err)]

pub mod curves;

Expand Down
Loading

0 comments on commit 60c204f

Please sign in to comment.