Sort committees before hashing (#36)

This commit is contained in:
Daniel Sanchez 2024-01-31 09:33:13 +01:00 committed by GitHub
parent 1d3bf3c6d8
commit ff09cf8bb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import random
def blake2b_hash(committee: Committee) -> bytes:
hasher = blake2b(digest_size=32)
for member in committee:
for member in sorted(committee):
hasher.update(member)
return hasher.digest()