Keats / jsonwebtoken

JWT lib in rust
MIT License
1.61k stars 253 forks source link

Is there a way to derive the public key from the private key for ECDSA keys? #396

Open p-only-if-q opened 2 weeks ago

p-only-if-q commented 2 weeks ago

The jwt_simple crate allows you to do something like:

let key_pair = ES256KeyPair::from_bytes(some_bytes); let public_key = key_pair.public_key();

Is there a way to grab the public key using this library?

Keats commented 2 weeks ago

No