I've recently thought of an interesting project that could help me understand Bitcoin internals and C programming on embedded devices. The project would be an external Arduino wallet - someone42 sent me an implementation of ECDSA_sign that would work on Atmega's and now I need a verification code so I could be able to test if the signatures generated by the devices are correct.
I, with the help of sipa
, hacked Bitcoin's Sign() function to look like this: http://wklej.org/id/598789/
; then, using the data generated by these printf's, I managed to write such an app:http://wklej.org/id/599540/
Unfortunately, although the data should be correct, the ECDSA_verify returns 0. Does anybody have an idea why is that?