webcrypto-examples icon indicating copy to clipboard operation
webcrypto-examples copied to clipboard

How to recover public key with ECDSA?

Open RobinLinus opened this issue 9 years ago • 0 comments

Any suggestions on how to implement public key recovery with WebCrypto ECDSA?

How is (r,s) encoded in the output buffer of sign? Is it just r = [0,32) and s = [32,64) for curve = P-256 (docs) ?

Seams like elliptic.js implements the recovery and it should be possible to import the recovered public key via jwk back into WebCrypto ...

RobinLinus avatar Feb 11 '17 16:02 RobinLinus