Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,8 @@ def generate_keys():
|
|
35 |
file_out_pub.close()
|
36 |
|
37 |
qr_link="test"
|
38 |
-
priv_key = stegan.conv_im("private_key.png",data=
|
39 |
-
pub_key = stegan.conv_im("public_key.png",data=
|
40 |
hash_1 = calculate_hash(public_key, hash_function="sha256")
|
41 |
hash_2 = calculate_hash(hash_1, hash_function="ripemd160")
|
42 |
address = base58.b58encode(hash_2)
|
|
|
35 |
file_out_pub.close()
|
36 |
|
37 |
qr_link="test"
|
38 |
+
priv_key = stegan.conv_im("private_key.png",data=private_key)
|
39 |
+
pub_key = stegan.conv_im("public_key.png",data=public_key)
|
40 |
hash_1 = calculate_hash(public_key, hash_function="sha256")
|
41 |
hash_2 = calculate_hash(hash_1, hash_function="ripemd160")
|
42 |
address = base58.b58encode(hash_2)
|