mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-23 18:21:38 +03:00
digest is necessary
This commit is contained in:
parent
baca9ca4a5
commit
2f000a971a
@ -34,8 +34,6 @@ use leo_compiler::{
|
|||||||
TheoremOptions,
|
TheoremOptions,
|
||||||
};
|
};
|
||||||
|
|
||||||
use sha2::Sha256;
|
|
||||||
|
|
||||||
pub type EdwardsTestCompiler = Compiler<'static, Fq, EdwardsGroupType>;
|
pub type EdwardsTestCompiler = Compiler<'static, Fq, EdwardsGroupType>;
|
||||||
// pub type EdwardsConstrainedValue = ConstrainedValue<'static, Fq, EdwardsGroupType>;
|
// pub type EdwardsConstrainedValue = ConstrainedValue<'static, Fq, EdwardsGroupType>;
|
||||||
|
|
||||||
@ -61,6 +59,8 @@ fn new_compiler(path: PathBuf, theorem_options: Option<TheoremOptions>) -> Edwar
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn hash(input: String) -> String {
|
fn hash(input: String) -> String {
|
||||||
|
use sha2::{Digest, Sha256};
|
||||||
|
|
||||||
let mut hasher = Sha256::new();
|
let mut hasher = Sha256::new();
|
||||||
hasher.update(input.as_bytes());
|
hasher.update(input.as_bytes());
|
||||||
let output = hasher.finalize();
|
let output = hasher.finalize();
|
||||||
|
Loading…
Reference in New Issue
Block a user