2017-11-13 01:54:13 -07:00
|
|
|
extern crate pairing;
|
|
|
|
extern crate bellman;
|
2018-03-05 17:58:34 -07:00
|
|
|
extern crate blake2_rfc;
|
2017-11-22 21:57:00 -07:00
|
|
|
extern crate digest;
|
|
|
|
extern crate rand;
|
|
|
|
|
2018-02-24 08:01:16 -07:00
|
|
|
extern crate byteorder;
|
|
|
|
|
2018-02-24 14:11:01 -07:00
|
|
|
#[cfg(test)]
|
|
|
|
#[macro_use]
|
|
|
|
extern crate hex_literal;
|
|
|
|
|
2017-11-22 21:57:00 -07:00
|
|
|
pub mod jubjub;
|
|
|
|
pub mod circuit;
|
2017-12-18 11:00:10 -07:00
|
|
|
pub mod group_hash;
|
2017-12-28 11:06:05 -07:00
|
|
|
pub mod pedersen_hash;
|
2018-02-24 22:53:00 -07:00
|
|
|
pub mod primitives;
|
2018-03-05 19:21:41 -07:00
|
|
|
|
|
|
|
// BLAKE2s personalizations
|
|
|
|
pub const CRH_IVK_PERSONALIZATION: &'static [u8; 8] = b"Zcashivk";
|
|
|
|
pub const PRF_NR_PERSONALIZATION: &'static [u8; 8] = b"WhatTheH";
|
|
|
|
pub const PEDERSEN_HASH_GENERATORS_PERSONALIZATION: &'static [u8; 8] = b"PEDERSEN";
|
|
|
|
|
|
|
|
// TODO: Expand the personalizations to the specific generators
|
|
|
|
pub const OTHER_PERSONALIZATION: &'static [u8; 8] = b"GOTOFAIL";
|