Omnibus commited on
Commit
0916c74
·
1 Parent(s): 5cf66dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,6 +7,7 @@ import base58
7
  import stegan
8
  import stegan2
9
  import qr
 
10
 
11
 
12
  def calculate_hash(data, hash_function: str = "sha256") -> str:
@@ -41,7 +42,7 @@ def generate_keys():
41
  hash_2 = calculate_hash(hash_1, hash_function="ripemd160")
42
  address = base58.b58encode(hash_2)
43
  address_im=qr.make_qr(txt=address)
44
-
45
  #qr_link="test"
46
  priv_key = stegan.conv_im("private_key.png",data=private_key)
47
  pub_key = stegan.conv_im(address_im,data=public_key)
 
7
  import stegan
8
  import stegan2
9
  import qr
10
+ import overlay
11
 
12
 
13
  def calculate_hash(data, hash_function: str = "sha256") -> str:
 
42
  hash_2 = calculate_hash(hash_1, hash_function="ripemd160")
43
  address = base58.b58encode(hash_2)
44
  address_im=qr.make_qr(txt=address)
45
+ address_im = overlay.text_overlay(address_im, "test test")
46
  #qr_link="test"
47
  priv_key = stegan.conv_im("private_key.png",data=private_key)
48
  pub_key = stegan.conv_im(address_im,data=public_key)