-
Notifications
You must be signed in to change notification settings - Fork 8
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 C2SP compliance and simplify #325
Fix C2SP compliance and simplify #325
Conversation
a5214d1
to
237fcdd
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #325 +/- ##
===========================================
- Coverage 51.05% 23.10% -27.95%
===========================================
Files 11 25 +14
Lines 903 1878 +975
===========================================
- Hits 461 434 -27
- Misses 374 1366 +992
- Partials 68 78 +10 ☔ View full report in Codecov by Sentry. |
52ea9cd
to
b84d22a
Compare
w.Header().Add("Content-Type", "text/x.tlog.size") | ||
} | ||
w.WriteHeader(sc) | ||
if len(body) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor consistency nit: here you use len(x) > 0
but above you do x != ""
. Can we pick one style of empty checking?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly not: body
is a []byte
, so we're stuck with len
here, but for strings != ""
is the more "idiomatic"/concise way.
568ef3c
to
5b1b9d4
Compare
This PR is a deeper fix to the C2SP
tlog-witness
compliance issues, which changes the internal witness API to better match.Also removes the call to
Update
exposed via the local HTTP server.TODO(al): Either in here, or in a follow-up, make
Update
just return the sig rather than the whole CP.