Skip to content

jose-jwk: import legacy impl from the elliptic-curve crate#85

Merged
tarcieri merged 4 commits into
masterfrom
jose-jwk/add-legacy-impl-from-elliptic-curve
Aug 18, 2025
Merged

jose-jwk: import legacy impl from the elliptic-curve crate#85
tarcieri merged 4 commits into
masterfrom
jose-jwk/add-legacy-impl-from-elliptic-curve

Conversation

@tarcieri

Copy link
Copy Markdown
Member

The elliptic-curve crate previously shipped with its own JWK impl:

http://docs.rs/elliptic-curve/0.13.8/elliptic_curve/struct.JwkEcKey.html

To keep the elliptic-curve crate simpler and avoid duplication within the project, this extracts the implementation into the jose-jwk crate.

Ideally we could consolidate into a single implementation, however the legacy implementation offers some features the existing implementation does not like encoding support. Extracting the implementation out provides an easy migration path for existing users until we can consolidate into a single implementation which covers all bases.

The `elliptic-curve` crate previously shipped with its own JWK impl:

http://docs.rs/elliptic-curve/0.13.8/elliptic_curve/struct.JwkEcKey.html

To keep the `elliptic-curve` crate simpler and avoid duplication within
the project, this extracts the implementation into the `jose-jwk` crate.

Ideally we could consolidate into a single implementation, however the
legacy implementation offers some features the existing implementation
does not like encoding support. Extracting the implementation out
provides an easy migration path for existing users until we can
consolidate into a single implementation which covers all bases.
@tarcieri tarcieri merged commit a9ffb16 into master Aug 18, 2025
85 checks passed
@tarcieri tarcieri deleted the jose-jwk/add-legacy-impl-from-elliptic-curve branch August 18, 2025 19:16
tarcieri added a commit to RustCrypto/traits that referenced this pull request Aug 18, 2025
Migrated to the `jose-jwk` crate in RustCrypto/JOSE#85
tarcieri added a commit to RustCrypto/traits that referenced this pull request Aug 18, 2025
Migrated to the `jose-jwk` crate in RustCrypto/JOSE#85
tarcieri added a commit to RustCrypto/traits that referenced this pull request Aug 18, 2025
Migrated to the `jose-jwk` crate in RustCrypto/JOSE#85
tarcieri added a commit to RustCrypto/traits that referenced this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant