Open RobinLinus opened 7 years ago
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) ?
sign
r = [0,32)
s = [32,64)
curve = P-256
Seams like elliptic.js implements the recovery and it should be possible to import the recovered public key via jwk back into WebCrypto ...
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 justr = [0,32)
ands = [32,64)
forcurve = 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 ...