elliptic-curves icon indicating copy to clipboard operation
elliptic-curves copied to clipboard

p521::ecdsa::VerifyingKey::to_sec1_bytes is missing

Open vdods opened this issue 5 months ago • 2 comments

Hi there, I've noticed that the to_sec1_bytes method of p521::ecdsa::VerifyingKey seems to be missing, making it difficult to serialize it into other forms. It seems that there is a comment // TODO(tarcieri): use RFC6979 + upstream types from the ecdsa crate that suggests that it might simply be due to p521 not fully generalized like p256 and p384 have been.

Is there a workaround for producing the SEC1 bytes for a p521 VerifyingKey?

Thanks!

vdods avatar Sep 18 '25 03:09 vdods

I assume this is about the v0.13.3 stable release? It should be available in the latest prerelease:

https://docs.rs/p521/0.14.0-pre.11/p521/ecdsa/type.VerifyingKey.html

tarcieri avatar Sep 18 '25 04:09 tarcieri

Ah, yep! Thanks for the quick response!

vdods avatar Sep 18 '25 05:09 vdods