mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-05-06 01:09:28 +00:00
Update da/common.py
typo short -> sort Co-authored-by: gusto <bacv@users.noreply.github.com>
This commit is contained in:
parent
61262edeed
commit
713851a3f3
@ -56,7 +56,7 @@ class Certificate:
|
||||
row_commitments: List[Commitment]
|
||||
|
||||
def verify(self, nodes_public_keys: List[BLSPublickey]) -> bool:
|
||||
# we short them as the signers bitfield is sorted by the public keys as well
|
||||
# we sort them as the signers bitfield is sorted by the public keys as well
|
||||
signers_keys = list(compress(sorted(nodes_public_keys), self.signers))
|
||||
message = build_attestation_message(self.aggregated_column_commitment, self.row_commitments)
|
||||
return bls_pop.AggregateVerify(signers_keys, [message]*len(signers_keys), self.aggregated_signatures)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user