From 7e80588550836abb44789ee45edd2003ebce7a5a Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Mon, 1 Mar 2021 14:38:25 +0000 Subject: [PATCH] Rename crate to reddsa --- Cargo.toml | 17 +++++++++++------ Dockerfile | 6 +++--- LICENCE | 2 +- README.md | 6 +++--- benches/bench.rs | 2 +- src/batch.rs | 2 +- src/constants.rs | 2 +- src/error.rs | 2 +- src/frost.rs | 2 +- src/hash.rs | 2 +- src/lib.rs | 2 +- src/scalar_mul.rs | 2 +- src/signature.rs | 2 +- src/signing_key.rs | 2 +- src/verification_key.rs | 2 +- tests/batch.rs | 2 +- tests/bincode.rs | 2 +- tests/frost.rs | 2 +- tests/librustzcash_vectors.rs | 2 +- tests/proptests.rs | 2 +- tests/smallorder.rs | 2 +- 21 files changed, 35 insertions(+), 30 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3d55f89..c7f1217 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,18 +1,23 @@ [package] -name = "redjubjub" +name = "reddsa" edition = "2018" # When releasing to crates.io: # - Update html_root_url # - Update CHANGELOG.md # - Create git tag. -version = "0.4.0" -authors = ["Henry de Valence ", "Deirdre Connolly ", "Chelsea Komlo "] +version = "0.0.0" +authors = [ + "Henry de Valence ", + "Deirdre Connolly ", + "Chelsea Komlo ", + "Jack Grigg ", +] readme = "README.md" license = "MIT OR Apache-2.0" -repository = "https://github.com/ZcashFoundation/redjubjub" +repository = "https://github.com/ZcashFoundation/reddsa" categories = ["cryptography"] -keywords = ["cryptography", "crypto", "jubjub", "redjubjub", "zcash"] -description = "A standalone implementation of the RedJubjub signature scheme." +keywords = ["cryptography", "crypto", "zcash"] +description = "A standalone implementation of the RedDSA signature scheme." [package.metadata.docs.rs] features = ["nightly"] diff --git a/Dockerfile b/Dockerfile index 7c2ed31..cce9083 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,11 @@ RUN apt-get update && \ apt-get install -y --no-install-recommends \ make cmake g++ gcc -RUN mkdir /redjubjub -WORKDIR /redjubjub +RUN mkdir /reddsa +WORKDIR /reddsa ENV RUST_BACKTRACE 1 -ENV CARGO_HOME /redjubjub/.cargo/ +ENV CARGO_HOME /reddsa/.cargo/ # Copy local code to the container image. # Assumes that we are in the git repo. diff --git a/LICENCE b/LICENCE index 7a3a691..8e5e134 100644 --- a/LICENCE +++ b/LICENCE @@ -4,7 +4,7 @@ LICENCE.Apache-2.0 files contained within this software distribution. ============================================================================== -Portions of redjubjub are taken from curve25519-dalek, which can be found at +Portions of reddsa are taken from curve25519-dalek, which can be found at , under the following license. This implementation does NOT use the portions of curve25519-dalek which were originally derived from Adam Langley's Go edwards25519 diff --git a/README.md b/README.md index d041c08..a0b68f1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -A minimal [RedJubjub][redjubjub] implementation for use in [Zebra][zebra]. +A minimal [RedDSA][reddsa] implementation for use in Zcash. Two parameterizations of RedJubjub are used in Zcash, one for `BindingSig` and one for `SpendAuthSig`. This library distinguishes @@ -19,7 +19,7 @@ verifying the signature: ```rust # use std::convert::TryFrom; use rand::thread_rng; -use redjubjub::*; +use reddsa::*; let msg = b"Hello!"; @@ -46,7 +46,7 @@ assert!( cargo doc --features "nightly" --open ``` -[redjubjub]: https://zips.z.cash/protocol/protocol.pdf#concretereddsa +[reddsa]: https://zips.z.cash/protocol/protocol.pdf#concretereddsa [zebra]: https://github.com/ZcashFoundation/zebra [refinement]: https://en.wikipedia.org/wiki/Refinement_type [sealed]: https://rust-lang.github.io/api-guidelines/future-proofing.html#sealed-traits-protect-against-downstream-implementations-c-sealed diff --git a/benches/bench.rs b/benches/bench.rs index cd9777e..b040237 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -1,7 +1,7 @@ use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput}; use rand::{thread_rng, Rng}; -use redjubjub::*; +use reddsa::*; use std::convert::TryFrom; enum Item { diff --git a/src/batch.rs b/src/batch.rs index 0bc3838..b82873b 100644 --- a/src/batch.rs +++ b/src/batch.rs @@ -1,6 +1,6 @@ // -*- mode: rust; -*- // -// This file is part of redjubjub. +// This file is part of reddsa. // Copyright (c) 2019-2021 Zcash Foundation // See LICENSE for licensing information. // diff --git a/src/constants.rs b/src/constants.rs index d534680..d302831 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,6 +1,6 @@ // -*- mode: rust; -*- // -// This file is part of redjubjub. +// This file is part of reddsa. // Copyright (c) 2019-2021 Zcash Foundation // See LICENSE for licensing information. // diff --git a/src/error.rs b/src/error.rs index e130f45..3868de5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,6 +1,6 @@ // -*- mode: rust; -*- // -// This file is part of redjubjub. +// This file is part of reddsa. // Copyright (c) 2019-2021 Zcash Foundation // See LICENSE for licensing information. // diff --git a/src/frost.rs b/src/frost.rs index ae3481f..befec93 100644 --- a/src/frost.rs +++ b/src/frost.rs @@ -1,6 +1,6 @@ // -*- mode: rust; -*- // -// This file is part of redjubjub. +// This file is part of reddsa. // Copyright (c) 2020-2021 Zcash Foundation // See LICENSE for licensing information. // diff --git a/src/hash.rs b/src/hash.rs index 4e8766c..a7ca75e 100644 --- a/src/hash.rs +++ b/src/hash.rs @@ -1,6 +1,6 @@ // -*- mode: rust; -*- // -// This file is part of redjubjub. +// This file is part of reddsa. // Copyright (c) 2019-2021 Zcash Foundation // See LICENSE for licensing information. // diff --git a/src/lib.rs b/src/lib.rs index 3b8a92d..88e5405 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ // -*- mode: rust; -*- // -// This file is part of redjubjub. +// This file is part of reddsa. // Copyright (c) 2019-2021 Zcash Foundation // See LICENSE for licensing information. // diff --git a/src/scalar_mul.rs b/src/scalar_mul.rs index fd169e4..89b808c 100644 --- a/src/scalar_mul.rs +++ b/src/scalar_mul.rs @@ -1,6 +1,6 @@ // -*- mode: rust; -*- // -// This file is part of redjubjub. +// This file is part of reddsa. // Copyright (c) 2019-2021 Zcash Foundation // Copyright (c) 2017-2021 isis agora lovecruft, Henry de Valence // See LICENSE for licensing information. diff --git a/src/signature.rs b/src/signature.rs index 43b1fbf..4e42db1 100644 --- a/src/signature.rs +++ b/src/signature.rs @@ -1,6 +1,6 @@ // -*- mode: rust; -*- // -// This file is part of redjubjub. +// This file is part of reddsa. // Copyright (c) 2019-2021 Zcash Foundation // See LICENSE for licensing information. // diff --git a/src/signing_key.rs b/src/signing_key.rs index 2de5f32..76a2444 100644 --- a/src/signing_key.rs +++ b/src/signing_key.rs @@ -1,6 +1,6 @@ // -*- mode: rust; -*- // -// This file is part of redjubjub. +// This file is part of reddsa. // Copyright (c) 2019-2021 Zcash Foundation // See LICENSE for licensing information. // diff --git a/src/verification_key.rs b/src/verification_key.rs index 17d32ef..09c190b 100644 --- a/src/verification_key.rs +++ b/src/verification_key.rs @@ -1,6 +1,6 @@ // -*- mode: rust; -*- // -// This file is part of redjubjub. +// This file is part of reddsa. // Copyright (c) 2019-2021 Zcash Foundation // See LICENSE for licensing information. // diff --git a/tests/batch.rs b/tests/batch.rs index fe095dd..27cc6e7 100644 --- a/tests/batch.rs +++ b/tests/batch.rs @@ -1,6 +1,6 @@ use rand::thread_rng; -use redjubjub::*; +use reddsa::*; #[test] fn spendauth_batch_verify() { diff --git a/tests/bincode.rs b/tests/bincode.rs index 3cca7cd..e0816a3 100644 --- a/tests/bincode.rs +++ b/tests/bincode.rs @@ -2,7 +2,7 @@ use std::convert::TryFrom; use proptest::prelude::*; -use redjubjub::*; +use reddsa::*; proptest! { #[test] diff --git a/tests/frost.rs b/tests/frost.rs index fa47b76..9d6a943 100644 --- a/tests/frost.rs +++ b/tests/frost.rs @@ -1,7 +1,7 @@ use rand::thread_rng; use std::collections::HashMap; -use redjubjub::frost; +use reddsa::frost; #[test] fn check_sign_with_dealer() { diff --git a/tests/librustzcash_vectors.rs b/tests/librustzcash_vectors.rs index 7e2af6c..c516327 100644 --- a/tests/librustzcash_vectors.rs +++ b/tests/librustzcash_vectors.rs @@ -3,7 +3,7 @@ use std::convert::TryFrom; #[macro_use] extern crate lazy_static; -use redjubjub::*; +use reddsa::*; #[test] fn verify_librustzcash_spendauth() { diff --git a/tests/proptests.rs b/tests/proptests.rs index f03fbbc..7b22c36 100644 --- a/tests/proptests.rs +++ b/tests/proptests.rs @@ -3,7 +3,7 @@ use std::convert::TryFrom; use proptest::prelude::*; use rand_core::{CryptoRng, RngCore}; -use redjubjub::*; +use reddsa::*; /// A signature test-case, containing signature data and expected validity. #[derive(Clone, Debug)] diff --git a/tests/smallorder.rs b/tests/smallorder.rs index 019068e..f5db77e 100644 --- a/tests/smallorder.rs +++ b/tests/smallorder.rs @@ -2,7 +2,7 @@ use std::convert::TryFrom; use jubjub::{AffinePoint, Fq}; -use redjubjub::*; +use reddsa::*; #[test] fn identity_publickey_passes() {