mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-03 13:43:11 +00:00
Sort committees before hashing
This commit is contained in:
parent
f635996d10
commit
1b146dfda8
@ -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