Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FieldBytesEncoding trait impls #732

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Feb 1, 2023

The elliptic-curve v0.13.0-pre.3 release refactored encoding onto a FieldBytesEncoding trait which provides curve-specific conversions between Uint and FieldBytes.

This commit adds these trait impls and otherwise cleans up serialization-related code to use the new API.

The *_be_* and *_le_* APIs have all been removed in favor of curves having a canonical endianness each. That's customizable on a per-curve basis via FieldBytesEncoding.

Also bumps ecdsa to v0.16.0-pre.0.

The `elliptic-curve` v0.13.0-pre.3 release refactored encoding onto a
`FieldBytesEncoding` trait which provides curve-specific conversions
between `Uint` and `FieldBytes`.

This commit adds these trait impls and otherwise cleans up
serialization-related code to use the new API.

The `*_be_*` and `*_le_*` APIs have all been removed in favor of curves
having a canonical endianness each. That's customizable on a per-curve
basis via `FieldBytesEncoding`.

Also bumps `ecdsa` to v0.16.0-pre.0.
@tarcieri tarcieri merged commit 1ab86e1 into master Feb 1, 2023
@tarcieri tarcieri deleted the add-field-bytes-encoding-trait-impls branch February 1, 2023 14:21
This was referenced Mar 3, 2023
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