Skip to content

Small single purpose Python script to sign and verify messages with Bitcoin private keys.

Notifications You must be signed in to change notification settings

alishahusain/bitcoin-sign-message

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Sign Message

A single purpose small Python script to sign and verify messages with bitcoin private keys.

How to use:

Requires ecdsa library. Do pip install ecdsa before using script.

To sign a message:
$./signmessage.py -s
Verify message

Enter address:
1HUBHMij46Hae75JPdWjeZ5Q7KaL7EFRSD
Enter message:
test message
Enter private key:
5KMWWy2d3Mjc8LojNoj8Lcz9B1aWu8bRofUgGwQk959Dw5h2iyw

Signature:

G0k+Nt1u5boTTUfLyj6x1T5flg1v9rUKGlhs/jPApaTWLHf3GVdAIOIHip6sVwXEuzQGPWIlS0VT+yryXiDaavw=
To sign a message:
$./signmessage.py -s
Verify message

Enter address:
14dD6ygPi5WXdwwBTt1FBZK3aD8uDem1FY
Enter message:
test message
Enter private key:
L41XHGJA5QX43QRG3FEwPbqD5BYvy6WxUxqAMM9oQdHJ5FcRHcGk

Signature:

IPn9bbEdNUp6+bneZqE2YJbq9Hv5aNILq9E5eZoMSF3/fBX4zjeIN6fpXfGSGPrZyKfHQ/c/kTSP+NIwmyTzMfk=
To verify a message:
$./signmessage.py
Verify message

Enter address:
14dD6ygPi5WXdwwBTt1FBZK3aD8uDem1FY
Enter message:
test message
Enter signature:
IPn9bbEdNUp6+bneZqE2YJbq9Hv5aNILq9E5eZoMSF3/fBX4zjeIN6fpXfGSGPrZyKfHQ/c/kTSP+NIwmyTzMfk=

Message verified: True

About

Small single purpose Python script to sign and verify messages with Bitcoin private keys.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%