fixed encrypt plugin having bad import
This commit is contained in:
parent
b7d4aaed9a
commit
2316e3c6e4
@ -22,8 +22,8 @@
|
|||||||
import logger, config, threading, time, datetime, sys, json
|
import logger, config, threading, time, datetime, sys, json
|
||||||
from onionrblockapi import Block
|
from onionrblockapi import Block
|
||||||
from onionrutils import stringvalidators, bytesconverter
|
from onionrutils import stringvalidators, bytesconverter
|
||||||
from onionrcrypto import encryption, getourkeypair
|
from onionrcrypto import encryption, keypair, signing
|
||||||
import onionrexceptions, onionrusers, signing
|
import onionrexceptions, onionrusers
|
||||||
import locale
|
import locale
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
plugin_name = 'encrypt'
|
plugin_name = 'encrypt'
|
||||||
@ -64,7 +64,6 @@ class PlainEncryption:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
# Build Message to encrypt
|
# Build Message to encrypt
|
||||||
data = {}
|
data = {}
|
||||||
keypair = getourkeypair.get_our_keypair()
|
|
||||||
myPub = keypair[0]
|
myPub = keypair[0]
|
||||||
if sign:
|
if sign:
|
||||||
data['sig'] = signing.ed_sign(plaintext, key=keypair[1], encodeResult=True)
|
data['sig'] = signing.ed_sign(plaintext, key=keypair[1], encodeResult=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user