mirror of https://github.com/nucypher/nucypher.git
Fixed mutable in method kwarg.
parent
485be636cd
commit
ef9b595147
|
@ -10,12 +10,13 @@ from typing import Dict
|
|||
from typing import Union, List
|
||||
|
||||
from nkms.config.config import KMSConfig
|
||||
from constant_sorrow import constants, default_constant_splitter
|
||||
from nkms.crypto.api import secure_random, keccak_digest
|
||||
from nkms.crypto.constants import NOT_SIGNED, NO_DECRYPTION_PERFORMED, PUBLIC_KEY_LENGTH
|
||||
from nkms.crypto.kits import MessageKit
|
||||
from nkms.crypto.constants import NO_DECRYPTION_PERFORMED, PUBLIC_KEY_LENGTH
|
||||
from nkms.crypto.kits import MessageKit, AdventureKit
|
||||
from nkms.crypto.powers import CryptoPower, SigningPower, EncryptingPower
|
||||
from nkms.crypto.signature import Signature
|
||||
from nkms.crypto.utils import BytestringSplitter, RepeatingBytestringSplitter
|
||||
from bytestring_splitter import BytestringSplitter, RepeatingBytestringSplitter
|
||||
from nkms.crypto.splitters import signature_splitter
|
||||
from nkms.network import blockchain_client
|
||||
from nkms.network.constants import BYTESTRING_IS_URSULA_IFACE_INFO
|
||||
from nkms.network.protocols import dht_value_splitter
|
||||
|
@ -26,6 +27,7 @@ from nkms_eth.actors import PolicyAuthor
|
|||
|
||||
from umbral import pre
|
||||
from umbral.keys import UmbralPublicKey
|
||||
from nkms.crypto.signature import Signature
|
||||
|
||||
|
||||
class Character(object):
|
||||
|
@ -67,6 +69,9 @@ class Character(object):
|
|||
if crypto_power and crypto_power_ups:
|
||||
raise ValueError("Pass crypto_power or crypto_power_ups (or neither), but not both.")
|
||||
|
||||
if not crypto_power_ups:
|
||||
crypto_power_ups = []
|
||||
|
||||
if is_me:
|
||||
self._stamp = SignatureStamp(self)
|
||||
|
||||
|
|
Loading…
Reference in New Issue