From 2316e3c6e4305ce535da174ed67d359629594381 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 29 Jul 2019 13:13:40 -0500 Subject: [PATCH] fixed encrypt plugin having bad import --- onionr/static-data/default-plugins/encrypt/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/onionr/static-data/default-plugins/encrypt/main.py b/onionr/static-data/default-plugins/encrypt/main.py index 752d0b0d..6bb7346e 100755 --- a/onionr/static-data/default-plugins/encrypt/main.py +++ b/onionr/static-data/default-plugins/encrypt/main.py @@ -22,8 +22,8 @@ import logger, config, threading, time, datetime, sys, json from onionrblockapi import Block from onionrutils import stringvalidators, bytesconverter -from onionrcrypto import encryption, getourkeypair -import onionrexceptions, onionrusers, signing +from onionrcrypto import encryption, keypair, signing +import onionrexceptions, onionrusers import locale locale.setlocale(locale.LC_ALL, '') plugin_name = 'encrypt' @@ -64,7 +64,6 @@ class PlainEncryption: sys.exit(1) # Build Message to encrypt data = {} - keypair = getourkeypair.get_our_keypair() myPub = keypair[0] if sign: data['sig'] = signing.ed_sign(plaintext, key=keypair[1], encodeResult=True)