Sort committees before hashing

This commit is contained in:
danielsanchezq 2023-07-05 09:47:39 +02:00
parent f635996d10
commit 1b146dfda8

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()