use updated sha2 functions

This commit is contained in:
collin 2020-06-29 14:11:12 -07:00
parent 800ad3278e
commit 9854c8c983

View File

@ -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))
} }