mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-23 10:12:21 +03:00
digest is necessary
This commit is contained in:
parent
baca9ca4a5
commit
2f000a971a
@ -34,8 +34,6 @@ use leo_compiler::{
|
||||
TheoremOptions,
|
||||
};
|
||||
|
||||
use sha2::Sha256;
|
||||
|
||||
pub type EdwardsTestCompiler = Compiler<'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 {
|
||||
use sha2::{Digest, Sha256};
|
||||
|
||||
let mut hasher = Sha256::new();
|
||||
hasher.update(input.as_bytes());
|
||||
let output = hasher.finalize();
|
||||
|
Loading…
Reference in New Issue
Block a user