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

Be explicit about byte order expectations #167

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Conversation

dvdplm
Copy link
Contributor

@dvdplm dvdplm commented Dec 12, 2024

The concrete curve implementation we use (k256) assumes big endian byte order for scalars and field elements. The traits implemented are byte order agnostic. This PR makes the big-endian byte order explicit in naming and docs. And adds a test to prove that the order matters.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.42%. Comparing base (dea2c07) to head (d813dd4).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #167   +/-   ##
=======================================
  Coverage   93.42%   93.42%           
=======================================
  Files          34       34           
  Lines        6829     6849   +20     
=======================================
+ Hits         6380     6399   +19     
- Misses        449      450    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fjarri fjarri merged commit 4c04dcf into master Dec 13, 2024
11 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2024
@fjarri fjarri deleted the dp-explicit-big-endian branch December 13, 2024 06:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants