Rename crate to reddsa
This commit is contained in:
parent
a32ae3fc87
commit
7e80588550
17
Cargo.toml
17
Cargo.toml
|
@ -1,18 +1,23 @@
|
||||||
[package]
|
[package]
|
||||||
name = "redjubjub"
|
name = "reddsa"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
# When releasing to crates.io:
|
# When releasing to crates.io:
|
||||||
# - Update html_root_url
|
# - Update html_root_url
|
||||||
# - Update CHANGELOG.md
|
# - Update CHANGELOG.md
|
||||||
# - Create git tag.
|
# - Create git tag.
|
||||||
version = "0.4.0"
|
version = "0.0.0"
|
||||||
authors = ["Henry de Valence <hdevalence@hdevalence.ca>", "Deirdre Connolly <durumcrustulum@gmail.com>", "Chelsea Komlo <me@chelseakomlo.com>"]
|
authors = [
|
||||||
|
"Henry de Valence <hdevalence@hdevalence.ca>",
|
||||||
|
"Deirdre Connolly <durumcrustulum@gmail.com>",
|
||||||
|
"Chelsea Komlo <me@chelseakomlo.com>",
|
||||||
|
"Jack Grigg <jack@electriccoin.co>",
|
||||||
|
]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
repository = "https://github.com/ZcashFoundation/redjubjub"
|
repository = "https://github.com/ZcashFoundation/reddsa"
|
||||||
categories = ["cryptography"]
|
categories = ["cryptography"]
|
||||||
keywords = ["cryptography", "crypto", "jubjub", "redjubjub", "zcash"]
|
keywords = ["cryptography", "crypto", "zcash"]
|
||||||
description = "A standalone implementation of the RedJubjub signature scheme."
|
description = "A standalone implementation of the RedDSA signature scheme."
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = ["nightly"]
|
features = ["nightly"]
|
||||||
|
|
|
@ -4,11 +4,11 @@ RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
make cmake g++ gcc
|
make cmake g++ gcc
|
||||||
|
|
||||||
RUN mkdir /redjubjub
|
RUN mkdir /reddsa
|
||||||
WORKDIR /redjubjub
|
WORKDIR /reddsa
|
||||||
|
|
||||||
ENV RUST_BACKTRACE 1
|
ENV RUST_BACKTRACE 1
|
||||||
ENV CARGO_HOME /redjubjub/.cargo/
|
ENV CARGO_HOME /reddsa/.cargo/
|
||||||
|
|
||||||
# Copy local code to the container image.
|
# Copy local code to the container image.
|
||||||
# Assumes that we are in the git repo.
|
# Assumes that we are in the git repo.
|
||||||
|
|
2
LICENCE
2
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
|
||||||
<https://github.com/dalek-cryptography/curve25519-dalek>, under the following
|
<https://github.com/dalek-cryptography/curve25519-dalek>, under the following
|
||||||
license. This implementation does NOT use the portions of curve25519-dalek
|
license. This implementation does NOT use the portions of curve25519-dalek
|
||||||
which were originally derived from Adam Langley's Go edwards25519
|
which were originally derived from Adam Langley's Go edwards25519
|
||||||
|
|
|
@ -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
|
Two parameterizations of RedJubjub are used in Zcash, one for
|
||||||
`BindingSig` and one for `SpendAuthSig`. This library distinguishes
|
`BindingSig` and one for `SpendAuthSig`. This library distinguishes
|
||||||
|
@ -19,7 +19,7 @@ verifying the signature:
|
||||||
```rust
|
```rust
|
||||||
# use std::convert::TryFrom;
|
# use std::convert::TryFrom;
|
||||||
use rand::thread_rng;
|
use rand::thread_rng;
|
||||||
use redjubjub::*;
|
use reddsa::*;
|
||||||
|
|
||||||
let msg = b"Hello!";
|
let msg = b"Hello!";
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ assert!(
|
||||||
cargo doc --features "nightly" --open
|
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
|
[zebra]: https://github.com/ZcashFoundation/zebra
|
||||||
[refinement]: https://en.wikipedia.org/wiki/Refinement_type
|
[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
|
[sealed]: https://rust-lang.github.io/api-guidelines/future-proofing.html#sealed-traits-protect-against-downstream-implementations-c-sealed
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
|
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
|
||||||
|
|
||||||
use rand::{thread_rng, Rng};
|
use rand::{thread_rng, Rng};
|
||||||
use redjubjub::*;
|
use reddsa::*;
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
|
|
||||||
enum Item {
|
enum Item {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- mode: rust; -*-
|
// -*- mode: rust; -*-
|
||||||
//
|
//
|
||||||
// This file is part of redjubjub.
|
// This file is part of reddsa.
|
||||||
// Copyright (c) 2019-2021 Zcash Foundation
|
// Copyright (c) 2019-2021 Zcash Foundation
|
||||||
// See LICENSE for licensing information.
|
// See LICENSE for licensing information.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- mode: rust; -*-
|
// -*- mode: rust; -*-
|
||||||
//
|
//
|
||||||
// This file is part of redjubjub.
|
// This file is part of reddsa.
|
||||||
// Copyright (c) 2019-2021 Zcash Foundation
|
// Copyright (c) 2019-2021 Zcash Foundation
|
||||||
// See LICENSE for licensing information.
|
// See LICENSE for licensing information.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- mode: rust; -*-
|
// -*- mode: rust; -*-
|
||||||
//
|
//
|
||||||
// This file is part of redjubjub.
|
// This file is part of reddsa.
|
||||||
// Copyright (c) 2019-2021 Zcash Foundation
|
// Copyright (c) 2019-2021 Zcash Foundation
|
||||||
// See LICENSE for licensing information.
|
// See LICENSE for licensing information.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- mode: rust; -*-
|
// -*- mode: rust; -*-
|
||||||
//
|
//
|
||||||
// This file is part of redjubjub.
|
// This file is part of reddsa.
|
||||||
// Copyright (c) 2020-2021 Zcash Foundation
|
// Copyright (c) 2020-2021 Zcash Foundation
|
||||||
// See LICENSE for licensing information.
|
// See LICENSE for licensing information.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- mode: rust; -*-
|
// -*- mode: rust; -*-
|
||||||
//
|
//
|
||||||
// This file is part of redjubjub.
|
// This file is part of reddsa.
|
||||||
// Copyright (c) 2019-2021 Zcash Foundation
|
// Copyright (c) 2019-2021 Zcash Foundation
|
||||||
// See LICENSE for licensing information.
|
// See LICENSE for licensing information.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- mode: rust; -*-
|
// -*- mode: rust; -*-
|
||||||
//
|
//
|
||||||
// This file is part of redjubjub.
|
// This file is part of reddsa.
|
||||||
// Copyright (c) 2019-2021 Zcash Foundation
|
// Copyright (c) 2019-2021 Zcash Foundation
|
||||||
// See LICENSE for licensing information.
|
// See LICENSE for licensing information.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- mode: rust; -*-
|
// -*- mode: rust; -*-
|
||||||
//
|
//
|
||||||
// This file is part of redjubjub.
|
// This file is part of reddsa.
|
||||||
// Copyright (c) 2019-2021 Zcash Foundation
|
// Copyright (c) 2019-2021 Zcash Foundation
|
||||||
// Copyright (c) 2017-2021 isis agora lovecruft, Henry de Valence
|
// Copyright (c) 2017-2021 isis agora lovecruft, Henry de Valence
|
||||||
// See LICENSE for licensing information.
|
// See LICENSE for licensing information.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- mode: rust; -*-
|
// -*- mode: rust; -*-
|
||||||
//
|
//
|
||||||
// This file is part of redjubjub.
|
// This file is part of reddsa.
|
||||||
// Copyright (c) 2019-2021 Zcash Foundation
|
// Copyright (c) 2019-2021 Zcash Foundation
|
||||||
// See LICENSE for licensing information.
|
// See LICENSE for licensing information.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- mode: rust; -*-
|
// -*- mode: rust; -*-
|
||||||
//
|
//
|
||||||
// This file is part of redjubjub.
|
// This file is part of reddsa.
|
||||||
// Copyright (c) 2019-2021 Zcash Foundation
|
// Copyright (c) 2019-2021 Zcash Foundation
|
||||||
// See LICENSE for licensing information.
|
// See LICENSE for licensing information.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// -*- mode: rust; -*-
|
// -*- mode: rust; -*-
|
||||||
//
|
//
|
||||||
// This file is part of redjubjub.
|
// This file is part of reddsa.
|
||||||
// Copyright (c) 2019-2021 Zcash Foundation
|
// Copyright (c) 2019-2021 Zcash Foundation
|
||||||
// See LICENSE for licensing information.
|
// See LICENSE for licensing information.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use rand::thread_rng;
|
use rand::thread_rng;
|
||||||
|
|
||||||
use redjubjub::*;
|
use reddsa::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn spendauth_batch_verify() {
|
fn spendauth_batch_verify() {
|
||||||
|
|
|
@ -2,7 +2,7 @@ use std::convert::TryFrom;
|
||||||
|
|
||||||
use proptest::prelude::*;
|
use proptest::prelude::*;
|
||||||
|
|
||||||
use redjubjub::*;
|
use reddsa::*;
|
||||||
|
|
||||||
proptest! {
|
proptest! {
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use rand::thread_rng;
|
use rand::thread_rng;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
use redjubjub::frost;
|
use reddsa::frost;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn check_sign_with_dealer() {
|
fn check_sign_with_dealer() {
|
||||||
|
|
|
@ -3,7 +3,7 @@ use std::convert::TryFrom;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
|
|
||||||
use redjubjub::*;
|
use reddsa::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn verify_librustzcash_spendauth() {
|
fn verify_librustzcash_spendauth() {
|
||||||
|
|
|
@ -3,7 +3,7 @@ use std::convert::TryFrom;
|
||||||
use proptest::prelude::*;
|
use proptest::prelude::*;
|
||||||
use rand_core::{CryptoRng, RngCore};
|
use rand_core::{CryptoRng, RngCore};
|
||||||
|
|
||||||
use redjubjub::*;
|
use reddsa::*;
|
||||||
|
|
||||||
/// A signature test-case, containing signature data and expected validity.
|
/// A signature test-case, containing signature data and expected validity.
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
|
|
|
@ -2,7 +2,7 @@ use std::convert::TryFrom;
|
||||||
|
|
||||||
use jubjub::{AffinePoint, Fq};
|
use jubjub::{AffinePoint, Fq};
|
||||||
|
|
||||||
use redjubjub::*;
|
use reddsa::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn identity_publickey_passes() {
|
fn identity_publickey_passes() {
|
||||||
|
|
Loading…
Reference in New Issue