Expose upstream's jubjub::Scalar type

This commit is contained in:
Deirdre Connolly 2020-06-09 18:41:10 -04:00
parent c933a8eb85
commit 38fd91856f
2 changed files with 4 additions and 6 deletions

View File

@ -21,7 +21,7 @@ features = ["nightly"]
rand_core = "0.5"
thiserror = "1.0"
blake2b_simd = "0.5"
jubjub = "0.3"
jubjub = { git = "https://github.com/zkcrypto/jubjub.git", rev = "af5598d"}
serde = { version = "1", optional = true, features = ["derive"] }
[dev-dependencies]

View File

@ -12,12 +12,10 @@ mod public_key;
mod secret_key;
mod signature;
/// An element of the JubJub scalar field used for randomization of public and secret keys.
pub type Randomizer = jubjub::Fr;
pub use jubjub::Scalar;
/// A better name than Fr.
// XXX-jubjub: upstream this name
type Scalar = jubjub::Fr;
/// An element of the JubJub scalar field used for randomization of public and secret keys.
pub type Randomizer = jubjub::Scalar;
use hash::HStar;