explicit type to fix pedersen hash leo program

This commit is contained in:
gluaxspeed 2021-02-04 15:16:53 -05:00
parent ba417a9a73
commit 839eda7936

View File

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