mirror of https://github.com/nucypher/nucypher.git
Remove check for length of tuple in encrypt_key
parent
041b81a6df
commit
e16d11ff32
|
@ -85,7 +85,7 @@ class Client(object):
|
||||||
path_pubkey = self._derive_path_key(subpath)
|
path_pubkey = self._derive_path_key(subpath)
|
||||||
enc_keys.append(self.encrypt_key(key, pubkey=path_pubkey))
|
enc_keys.append(self.encrypt_key(key, pubkey=path_pubkey))
|
||||||
return enc_keys
|
return enc_keys
|
||||||
elif len(path) == 1 or type(path) is str:
|
elif type(path) is str:
|
||||||
return self.encrypt_key(key, pubkey=self._derive_path_key(path))
|
return self.encrypt_key(key, pubkey=self._derive_path_key(path))
|
||||||
elif not path:
|
elif not path:
|
||||||
return self._pre.encrypt(pubkey, key)
|
return self._pre.encrypt(pubkey, key)
|
||||||
|
|
Loading…
Reference in New Issue