Skip to content

Commit

Permalink
Updated POW Algo
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrinpyi committed Sep 3, 2024
1 parent 3f978e4 commit accd2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain/consensus/utils/pow/heavyhash.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (mat *matrix) HeavyHash(hash *externalapi.DomainHash) *externalapi.DomainHa
for j := 0; j < 64; j++ {
sum += mat[i][j] * vector[j]
}
product[i] = sum >> 10
product[i] = (sum & 0xF) ^ ((sum >> 4) & 0xF) ^ ((sum >> 8) & 0xF)
}

// Concatenate 4 LSBs back to 8 bit xor with sum1
Expand Down

0 comments on commit accd2d6

Please sign in to comment.