mirror of https://github.com/nucypher/nucypher.git
Overriding variant is a fairly unusual situation - let's bind a default value to the class and let the user subclass if they need to do this.
parent
5282e8ddaf
commit
3de7ffb52d
|
@ -1467,6 +1467,7 @@ class Enrico:
|
|||
"""A data source that encrypts data for some policy's public key"""
|
||||
|
||||
banner = ENRICO_BANNER
|
||||
default_dkg_variant = FerveoVariant.PRECOMPUTED
|
||||
|
||||
def __init__(self, encrypting_key: Union[PublicKey, DkgPublicKey]):
|
||||
self.signing_power = SigningPower()
|
||||
|
@ -1507,7 +1508,7 @@ class Enrico:
|
|||
ciphertext=ciphertext,
|
||||
conditions=Conditions(json.dumps(conditions)),
|
||||
context=context,
|
||||
variant=variant_id,
|
||||
variant=variant,
|
||||
)
|
||||
|
||||
return ciphertext, tdr
|
||||
|
|
Loading…
Reference in New Issue