diff --git a/blockchain_integration/pi_network/crypto/ntru_cryptography.py b/blockchain_integration/pi_network/crypto/ntru_cryptography.py index 318d87c4c..631eed5d2 100644 --- a/blockchain_integration/pi_network/crypto/ntru_cryptography.py +++ b/blockchain_integration/pi_network/crypto/ntru_cryptography.py @@ -1,5 +1,6 @@ import ntru + class NTRUCryptography: def __init__(self, private_key, public_key): self.private_key = private_key @@ -11,6 +12,7 @@ def encrypt(self, message): def decrypt(self, ciphertext): return ntru.decrypt(ciphertext, self.private_key) + private_key, public_key = ntru.keygen(701, 613, 11) ntru_cryptography = NTRUCryptography(private_key, public_key)