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

Fix cosig timestamp endianness #153

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

AlCutter
Copy link
Collaborator

@AlCutter AlCutter commented Oct 3, 2024

This PR corrects the formatting of the timestamp in CoSigv1 signatures.

Previously it was encoded as LE, but should have been BE.

@AlCutter AlCutter requested a review from mhutchinson October 3, 2024 14:10
@AlCutter AlCutter requested a review from a team as a code owner October 3, 2024 14:10
@codecov-commenter
Copy link

codecov-commenter commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.24%. Comparing base (fa00c16) to head (ae23fd2).
Report is 68 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #153      +/-   ##
==========================================
- Coverage   82.57%   77.24%   -5.33%     
==========================================
  Files           5        6       +1     
  Lines         241      334      +93     
==========================================
+ Hits          199      258      +59     
- Misses         30       45      +15     
- Partials       12       31      +19     

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

@AlCutter AlCutter merged commit a04dcc2 into transparency-dev:main Oct 3, 2024
8 checks passed
@AlCutter AlCutter deleted the fix_timestamp_sig branch October 3, 2024 14:59
mhutchinson added a commit to mhutchinson/distributor that referenced this pull request Oct 16, 2024
This change has two main aspects, but they are related. The first is that we now overwrite a checkpoint from a witness even if we have previously seen one of the same size. This allows infrequently updated checkpoints to have fresh witness signature timestamps. The other change is to only check the witness note signature, and not the cosignatureV1. This is a temporary change to allow signatures from the fixed implementation of this signer (transparency-dev/formats#153) to propagate into the distributor storage.
mhutchinson added a commit to transparency-dev/distributor that referenced this pull request Oct 16, 2024
This change has two main aspects, but they are related. The first is that we now overwrite a checkpoint from a witness even if we have previously seen one of the same size. This allows infrequently updated checkpoints to have fresh witness signature timestamps. The other change is to only check the witness note signature, and not the cosignatureV1. This is a temporary change to allow signatures from the fixed implementation of this signer (transparency-dev/formats#153) to propagate into the distributor storage.
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.

3 participants