mirror of
https://github.com/logos-co/nomos-specs.git
synced 2025-01-10 23:56:31 +00:00
Sort committees before hashing (#36)
This commit is contained in:
parent
1d3bf3c6d8
commit
ff09cf8bb8
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user