mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 11:45:00 +03:00
use updated sha2 functions
This commit is contained in:
parent
800ad3278e
commit
9854c8c983
@ -66,8 +66,8 @@ impl<F: Field + PrimeField, G: GroupType<F>> Compiler<F, G> {
|
|||||||
|
|
||||||
// Hash the file contents
|
// Hash the file contents
|
||||||
let mut hasher = Sha256::new();
|
let mut hasher = Sha256::new();
|
||||||
hasher.input(unparsed_file.as_bytes());
|
hasher.update(unparsed_file.as_bytes());
|
||||||
let hash = hasher.result();
|
let hash = hasher.finalize();
|
||||||
|
|
||||||
Ok(hex::encode(hash))
|
Ok(hex::encode(hash))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user