Omnibus commited on
Commit
82cde8d
·
1 Parent(s): 595f033

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -81,13 +81,15 @@ def encrypt_text(data,in2,address):
81
  file_data =(file.read())
82
  print (f'file_data::{file_data}')
83
  qr_link="test"
84
- trans_im1=qr.make_qr(txt=qr_link, color_b="#ECFD08")
85
  #trans_im1.save("trans_im.png")
86
  hash_1 = calculate_hash(pub_key, hash_function="sha256")
87
  hash_2 = calculate_hash(hash_1, hash_function="ripemd160")
88
  address = base58.b58encode(hash_2)
89
  add_label = str(address)
90
- add_label = add_label.strip("b").strip("'")
 
 
 
91
  #address_im = "address_im.png"
92
  private_key_im = overlay.textover(trans_im1, "Transaction",add_label)
93
  private_key_im.save("private_key_im.png")
 
81
  file_data =(file.read())
82
  print (f'file_data::{file_data}')
83
  qr_link="test"
 
84
  #trans_im1.save("trans_im.png")
85
  hash_1 = calculate_hash(pub_key, hash_function="sha256")
86
  hash_2 = calculate_hash(hash_1, hash_function="ripemd160")
87
  address = base58.b58encode(hash_2)
88
  add_label = str(address)
89
+ add_label = add_label.strip("b").strip("'")
90
+
91
+ trans_im1=qr.make_qr(txt=address, color_b="#ECFD08")
92
+
93
  #address_im = "address_im.png"
94
  private_key_im = overlay.textover(trans_im1, "Transaction",add_label)
95
  private_key_im.save("private_key_im.png")