-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade curv
interface
#120
Changes from 84 commits
2b5c6b4
d469b0b
138f41d
076b59c
83699f4
8882430
8aed496
369d50c
4f84e8a
b5f322e
e47d41d
d841938
b335da5
ef8d6f9
24e35c7
45c96b1
03d1c25
36cddf0
08764b7
877721e
94a6459
c50e757
ce61396
dfd6ee9
483d70f
e0b2da7
be6c8d9
4ecc528
0c91c91
93317ec
a63cea8
c03f8e2
ac52e3f
c419d83
1bedf0a
f30877c
c3de0a8
7cb906f
6f5a511
78012ea
c3877dd
c90c3fc
0d5bbc2
683986b
e88a14f
7b56c57
48ea95a
64a3a57
cddf56a
a7b637c
aeb9761
605320d
9c7bd7d
72552a7
e651b0f
e9c149b
0f36489
f389d72
8be8d7f
14dbcb7
f0177da
10e6e2d
6725dfa
38f724c
a5a0c5e
2218630
8ea5d95
e9c3cac
595dc89
4cbec3d
0a0a540
2a75890
8fe5ea4
89f3eda
a955b6e
c414579
10e083b
043f969
8543551
cfcaecf
f65bd33
f954bdb
affe7be
34873cd
2eb8b2b
373672f
17d18f3
fc6e894
5abd70a
5d8b4bd
093f810
a1d1464
3e315f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
language: rust | ||
cache: cargo | ||
rust: | ||
- stable | ||
rust: stable | ||
virt: lxd | ||
|
||
before_script: | ||
- rustup component add rustfmt-preview clippy | ||
- cargo fmt --all -- --check | ||
- cargo clippy -- -D clippy::all | ||
env: | ||
- BIGINT_BACKEND=rust-gmp-kzen | ||
- BIGINT_BACKEND=num-bigint | ||
|
||
before_install: | ||
- rustup component add rustfmt clippy | ||
|
||
script: | ||
- cargo build --verbose | ||
- cargo test --verbose | ||
- cargo build --verbose --no-default-features --features $BIGINT_BACKEND | ||
- cargo test --verbose --no-default-features --features $BIGINT_BACKEND | ||
- if [[ "$BIGINT_BACKEND" = "rust-gmp-kzen" ]]; then cargo fmt --all -- --check; fi | ||
- if [[ "$BIGINT_BACKEND" = "rust-gmp-kzen" ]]; then cargo clippy -- -D clippy::all; fi | ||
|
||
deploy: | ||
provider: cargo | ||
token: | ||
secure: "FE6A1XRyJtTK92rV3y5e0go+FDKn1HpJbYkHOacDqabTkUluXrCTw3ERFcQQ13QZdc9xkxoAs7roKp8ivl0Xg1IJCzI+yLb0ZR6YcYebKEqd06YFbBmejjvMsyyZHKPTQmroe+tBwcA1IqLLcAY8vmY5EGhJTsGUhovIomw1RvqM6gu9yUwII/sF0a5gqY761cJd4QoLlWTb1Er7DqZxoU9drhWAJQP7sLsspjLu6dOyWzb0A2mTmnek+iuVnt9mGPtjGk4FcNPGbEmNu3UPOVuXcyibFPIALEWrH0ouZB7E9k312g45LucSeKSimgQYQBNAzdsnkKyBwyTpGuaosGnMbI7mhoi3visV21RTbw61N05dmZTYb4VAMcx+93TslKMDv5nmIlUmKxULNRBSTPPtrg0/X7KuKaoHVstrxx0ohd8GFwGYQBB64mQaOxFBhoy//prpHjhFl+1cti4JHyaHFSV/PfaryvUfRg4q2Dlq1HP+ey5cPRPbwfpSO1RmXlIDWe21ncRnKSpgMHTPBzYNtil+gZyzHl5X4ZLvLCaHsZwZQPMFB+otlabFaS1caqkk1F1fHMrj8NMak/snb2IyUJqXgQivqzEn38G3k9/QHeQXhNVwyGDtdWV51P9XfXFpxrEuuWlXF56ABiWcF7bY7Y3DeCbnFNLkVkGZYvY=" | ||
on: | ||
tags: true | ||
condition: '"$TRAVIS_TAG" =~ ^v[0-9].+$ && "$BIGINT_BACKEND" = "rust-gmp-kzen"' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Changelog | ||
|
||
## v0.8.0-rc1 | ||
* Elliptic curve API has been significantly changed [#120] | ||
|
||
In particular: ECPoint, ECScalar traits were redesigned. They remain, | ||
but are not supposed to be used directly anymore. In replacement, | ||
we introduce structures Point, Scalar representing elliptic point and | ||
scalar. See curv::elliptic::curves module-level documentation to learn | ||
more. | ||
* Add low degree exponent interpolation proof [#119] | ||
|
||
[#119]: https://github.com/ZenGo-X/curv/pull/119 | ||
[#120]: https://github.com/ZenGo-X/curv/pull/120 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,35 @@ | ||
[package] | ||
name = "curv" | ||
version = "0.7.0" | ||
name = "curv-kzen" | ||
version = "0.8.0-rc1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you explain the name change ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We publish crate on crates.io under this name. I had to change the crate name to make automatic publishing possible (when you tag commit, and a new version is being uploaded to crates.io). But that's a package name, library name remains the same. About the version — rc1 stands for "release candidate 1". It means that it's something close to what will be released in next version. My plan — I want to release curv v0.8.0-rc1, and then gradually update others crates. Updating other crates might require some changes in |
||
edition = "2018" | ||
authors = ["Omer Shlomovits"] | ||
authors = [ | ||
"Omer Shlomovits", | ||
"Denis Varlakov", | ||
] | ||
license = "MIT" | ||
description = "Curv contains an extremly simple interface to onboard new elliptic curves. Use this library for general purpose elliptic curve cryptography" | ||
repository = "https://github.com/ZenGo-X/curv" | ||
|
||
[lib] | ||
name = "curv" | ||
crate-type = ["lib"] | ||
|
||
[dependencies] | ||
blake2b_simd = "0.5.7" | ||
cryptoxide = "0.1.2" | ||
curve25519-dalek = "1.2.3" | ||
derivative = "2.2" | ||
curve25519-dalek = "3" | ||
digest = "0.8.1" | ||
ff-zeroize = "0.6.3" | ||
funty = "=1.1.0" | ||
generic-array = "0.14" | ||
hex = "0.4" | ||
hex = { version = "0.4", features = ["serde"] } | ||
hmac = "0.7.1" | ||
thiserror = "1" | ||
merkle-sha3 = "^0.1" | ||
lazy_static = "1.4.0" | ||
lazy_static = "1.4" | ||
num-traits = "0.2" | ||
num-integer = "0.1" | ||
pairing-plus = "0.19" | ||
rand = "0.6" | ||
rand = "0.7" | ||
rand_legacy = { package = "rand", version = "0.6" } | ||
ring-algorithm = "0.2.3" | ||
rust-crypto = "^0.2" | ||
serde = { version = "1.0", features = ["derive"] } | ||
|
@@ -40,15 +43,14 @@ num-bigint = { version = "0.4", features = ["serde"], optional = true } | |
|
||
[dependencies.secp256k1] | ||
version = "0.20" | ||
features = ["serde", "rand-std"] | ||
features = ["serde", "rand-std", "global-context"] | ||
|
||
[dependencies.p256] | ||
version = "0.5" | ||
features = ["ecdsa"] | ||
version = "0.9" | ||
features = ["ecdsa", "ecdsa-core", "zeroize"] | ||
|
||
[dev-dependencies] | ||
bincode = "1.1" | ||
serde_json = "1.0" | ||
serde_test = "1.0" | ||
paste = "1.0.2" | ||
proptest = "0.10" | ||
proptest-derive = "0.2" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a changelog ! this is great :)