Expose upstream's jubjub::Scalar type
This commit is contained in:
parent
c933a8eb85
commit
38fd91856f
|
@ -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]
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue