Update examples/pedersen-hash/src/main.leo

This commit is contained in:
Howard Wu 2021-02-04 14:31:23 -08:00 committed by GitHub
parent 839eda7936
commit 6f15498f3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ circuit PedersenHash {
}
function hash(self, bits: [bool; 256]) -> group {
let mut digest: group = 0group;
let mut digest: group = 0;
for i in 0..256 {
if bits[i] {
digest += self.parameters[i];