From 83344553d9feaac1cb9e5a415c53b0a4bcbeac6c Mon Sep 17 00:00:00 2001 From: jMyles Date: Mon, 12 Feb 2018 13:00:14 -0800 Subject: [PATCH] Clarifying that we need (and use) the enc - not sig - public key for encrypting. --- nkms/crypto/powers.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nkms/crypto/powers.py b/nkms/crypto/powers.py index 79fec4cf5..ef7b61ecb 100644 --- a/nkms/crypto/powers.py +++ b/nkms/crypto/powers.py @@ -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):