-
Notifications
You must be signed in to change notification settings - Fork 645
add verifying signed message, using pubkey recovery #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e1931bd to
798aad2
Compare
|
okay, seem to have it working now except I keep running into some odd thing where if Maybe @petertodd you can help me with this because tbh I this is the first time for be using this stuff and I have no clue why this happens. PS. I made a
|
7f24ff1 to
1693626
Compare
|
FWIW, I'm travelling right now and am pretty busy until the MIT Bitcoin Expo is over; I'll try to get to this when I get back after that. Thanks! |
be91ff5 to
81c6084
Compare
|
@petertodd I fixed the issue with the null bytes, if you could tell me where (which files) you'd prefer these things to go then this stuff should be ready:
|
|
So bitcoin signatures aren't consensus critical, so rather than putting them in bitcoin.core.signature, let's put that functionality in bitcoin.signature instead. As for the code you added to bitcoin.core.key though... meh, leave it there for now; this can be cleaned up later. |
|
@petertodd I've been slacking lately, sorry for that, I want / need to pick up this PR ... I'll move
|
|
I just moved them into |
|
How about just bitcoin.signmessage? It'd be good to have signmessage.py and verifymessage.py scripts in the examples/ directory showing the functionality off too. |
…using pubkey recovery.
23aa0a3 to
0b8318c
Compare
|
okay, and I rebased and squashed all the commits into 1 |
|
@petertodd I think this is good to go? |
0b8318c Add signing and verifying of a message compatible with bitcoin core, using pubkey recovery. (Ruben de Vries)
|
Thanks! Sorry, was out of the country, as usual. :/ |
|
awesome! thanks! can we also get a v0.4.1 ;) ? |
|
Time for a v0.5.0 I think. |
0b8318c Add signing and verifying of a message compatible with bitcoin core, using pubkey recovery. (Ruben de Vries) [ yapified by gitreformat (github/ghtdak) on Mon Nov 30 21:12:19 2015 ]
Work in Progress
I ported the code for pubkey recovery from bitcoin core using ctypes, the same way as the other code is written.
The
VerifyMessage(andBitcoinMessageclass) are still in thetest_signverify_message.pybecause I have no idea where you would want these to go? please let me know where you want me to put themI'm not entirely sure about the
CPubKey.recover_compact, as a python dev I'd say it should be a@classmethod(like it is now) but to match the bitcoin core code (which is what you've been doing) should it be different?tested against
py2.7andpy3.4, to test it againstlibeayI have to run it on windows I guess, or is it 100% certain that everything 'just works'?PS. is there any particular reason for not having travis-ci setup to run the tests on the various python versions?