micro-ecc icon indicating copy to clipboard operation
micro-ecc copied to clipboard

Added uECC_sign_recoverable for signing with recovery ID

Open lionello opened this issue 9 years ago • 2 comments

This is only the first step to getting full "recovery ID" support.

The recovery ID ("recid") allows one to recover the public key from a ECDSA signature.

TODO: create a verify/recover method for doing the actual recovery; add deterministic version.

lionello avatar May 25 '16 11:05 lionello

It looks good to me, but presumably people might also want to get the recid for a deterministic signature. Maybe it would be better after all to just add a recid parameter to uECC_sign() and uECC_sign_deterministic() (and keep uECC_sign_with_k() the way you have it, ignore my comment). What do you think?

kmackay avatar May 26 '16 05:05 kmackay

Yeah, I thought about that. I still have a slight preference for making new functions. This avoids adding a parameter that many [all of the current] users don't care about. Adding a function is very little overhead.

I'll add the deterministic version.

lionello avatar May 26 '16 05:05 lionello