haskell-crypto / cryptonite

lowlevel set of cryptographic primitives for haskell
Other
226 stars 139 forks source link

Return V Value From ECDSA Signing #375

Closed d-xo closed 1 year ago

d-xo commented 1 year ago

The current ECDSA signature type only contains the R and S values. However for many applications it is also very useful to have the "V" value available when recovering the signer from a digest and it's signature. More details here: https://bitcoin.stackexchange.com/questions/38351/ecdsa-v-r-s-what-is-v.

It would be great if cryptonite could compute and and return the V value for ECDSA signatures.