mirror of https://github.com/nucypher/nucypher.git
Clarifying that we need (and use) the enc - not sig - public key for encrypting.
parent
0e57e44c03
commit
83344553d9
|
@ -89,10 +89,9 @@ class CryptoPower(object):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise NoEncryptingPower
|
raise NoEncryptingPower
|
||||||
|
|
||||||
def encrypt_for(self, pubkey, plaintext):
|
def encrypt_for(self, enc_pubkey, plaintext):
|
||||||
ciphertext, capsule = umbral.umbral.encrypt(pubkey, plaintext)
|
ciphertext, capsule = umbral.umbral.encrypt(enc_pubkey, plaintext)
|
||||||
return MessageKit(ciphertext=ciphertext, capsule=capsule,
|
return MessageKit(ciphertext=ciphertext, capsule=capsule)
|
||||||
alice_pubkey=pubkey)
|
|
||||||
|
|
||||||
|
|
||||||
class CryptoPowerUp(object):
|
class CryptoPowerUp(object):
|
||||||
|
|
Loading…
Reference in New Issue