Spaces:
Runtime error
Runtime error
Update app_og.py
Browse files
app_og.py
CHANGED
@@ -80,11 +80,11 @@ def validate_signature(public_key: bytes, signature: bytes, transaction_data: by
|
|
80 |
|
81 |
def encrypt_text(data,pub_im,priv_im,address):
|
82 |
pub_key = stegan2.decode(pub_im)
|
83 |
-
priv_key = stegan2.decode(in2)
|
84 |
#print(f'priv_key:: {priv_key}')
|
85 |
-
private_key = RSA.import_key(priv_key)
|
86 |
data = data.encode("utf-8")
|
87 |
-
data = sign(data,
|
88 |
|
89 |
|
90 |
recipient_key = RSA.import_key(pub_key)
|
|
|
80 |
|
81 |
def encrypt_text(data,pub_im,priv_im,address):
|
82 |
pub_key = stegan2.decode(pub_im)
|
83 |
+
#priv_key = stegan2.decode(in2)
|
84 |
#print(f'priv_key:: {priv_key}')
|
85 |
+
#private_key = RSA.import_key(priv_key)
|
86 |
data = data.encode("utf-8")
|
87 |
+
data = sign(data,priv_im)
|
88 |
|
89 |
|
90 |
recipient_key = RSA.import_key(pub_key)
|