mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
reconstruct message if it contains spaces
This commit is contained in:
parent
87d4b132a4
commit
38f93cb593
1 changed files with 9 additions and 2 deletions
11
electrum
11
electrum
|
@ -488,11 +488,18 @@ if __name__ == '__main__':
|
||||||
print "error: mismatch"
|
print "error: mismatch"
|
||||||
|
|
||||||
elif cmd == 'signmessage':
|
elif cmd == 'signmessage':
|
||||||
address, message = args[1:3]
|
address = args[1]
|
||||||
|
message = ' '.join(args[2:])
|
||||||
|
if len(args) > 3:
|
||||||
|
print "Warning: Message was reconstructed from several arguments:", repr(message)
|
||||||
print wallet.sign_message(address, message, password)
|
print wallet.sign_message(address, message, password)
|
||||||
|
|
||||||
elif cmd == 'verifymessage':
|
elif cmd == 'verifymessage':
|
||||||
address, signature, message = args[1:4]
|
address = args[1]
|
||||||
|
signature = args[2]
|
||||||
|
message = ' '.join(args[3:])
|
||||||
|
if len(args) > 4:
|
||||||
|
print "Warning: Message was reconstructed from several arguments:", repr(message)
|
||||||
try:
|
try:
|
||||||
wallet.verify_message(address, signature, message)
|
wallet.verify_message(address, signature, message)
|
||||||
print True
|
print True
|
||||||
|
|
Loading…
Add table
Reference in a new issue