Sign the msg form, instead of "coucou"...
This commit is contained in:
parent
d55e2d379a
commit
0a49e7448e
@ -1314,7 +1314,7 @@ def message_to_hash(pubkey, msg):
|
||||
def sign_message(secret, msg):
|
||||
k = KEY()
|
||||
k.generate(secret)
|
||||
return k.sign(Hash('coucou'))
|
||||
return k.sign(Hash(msg))
|
||||
|
||||
def verify_message_signature(pubkey, sign, msg):
|
||||
k = KEY()
|
||||
@ -1650,3 +1650,4 @@ if __name__ == '__main__':
|
||||
db.close()
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user