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:
|
||||
raise NoEncryptingPower
|
||||
|
||||
def encrypt_for(self, pubkey, plaintext):
|
||||
ciphertext, capsule = umbral.umbral.encrypt(pubkey, plaintext)
|
||||
return MessageKit(ciphertext=ciphertext, capsule=capsule,
|
||||
alice_pubkey=pubkey)
|
||||
def encrypt_for(self, enc_pubkey, plaintext):
|
||||
ciphertext, capsule = umbral.umbral.encrypt(enc_pubkey, plaintext)
|
||||
return MessageKit(ciphertext=ciphertext, capsule=capsule)
|
||||
|
||||
|
||||
class CryptoPowerUp(object):
|
||||
|
|
Loading…
Reference in New Issue