mirror of https://github.com/nucypher/nucypher.git
Yeah, why are we still using lambdas for this sort of thing?
Co-authored-by: Owen Campbell <owen.campbell@tanti.org.uk>pull/3143/head
parent
2c3951bd35
commit
d91686c5e1
|
@ -1,4 +1,5 @@
|
||||||
import json
|
import json
|
||||||
|
from operator import attrgetter
|
||||||
from typing import Dict, Tuple
|
from typing import Dict, Tuple
|
||||||
|
|
||||||
from ferveo_py import DkgPublicParameters
|
from ferveo_py import DkgPublicParameters
|
||||||
|
@ -97,7 +98,7 @@ class DKGOmniscient:
|
||||||
]
|
]
|
||||||
|
|
||||||
# Validators must be sorted by their public key
|
# Validators must be sorted by their public key
|
||||||
validators.sort(key=lambda v: v.address)
|
validators.sort(key=attrgetter("address"))
|
||||||
|
|
||||||
# Each validator holds their own DKG instance and generates a transcript every
|
# Each validator holds their own DKG instance and generates a transcript every
|
||||||
# validator, including themselves
|
# validator, including themselves
|
||||||
|
|
Loading…
Reference in New Issue