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

feat: enhanced output of TSTInfo Validate #23

Merged
merged 8 commits into from
Jul 2, 2024

Conversation

Two-Hearts
Copy link
Contributor

@Two-Hearts Two-Hearts commented Jun 28, 2024

This PR updates the output of TSTInfo.Validate() to return `Timestamp following RFC 3161 2.4.2.
With this change, callers who need compare the timestamp with other time points won't have to do extra calculations.

Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Copy link

codecov bot commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@dcff9b7). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #23   +/-   ##
=======================================
  Coverage        ?   95.15%           
=======================================
  Files           ?       18           
  Lines           ?      722           
  Branches        ?        0           
=======================================
  Hits            ?      687           
  Misses          ?       18           
  Partials        ?       17           

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

Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
@Two-Hearts Two-Hearts changed the title feat: added TimestampLimit feat: added Timestamp struct Jun 28, 2024
@Two-Hearts Two-Hearts changed the title feat: added Timestamp struct feat: enhanced output of TSTInfo Validate Jun 28, 2024
token.go Outdated Show resolved Hide resolved
token.go Outdated Show resolved Hide resolved
token.go Outdated Show resolved Hide resolved
token_test.go Outdated Show resolved Hide resolved
token.go Outdated Show resolved Hide resolved
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
shizhMSFT
shizhMSFT previously approved these changes Jun 28, 2024
Copy link

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

JeyJeyGao
JeyJeyGao previously approved these changes Jun 28, 2024
Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

priteshbandi
priteshbandi previously approved these changes Jun 28, 2024
Copy link

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

token.go Show resolved Hide resolved
@priteshbandi priteshbandi dismissed their stale review June 28, 2024 20:44

Added a question

@Two-Hearts Two-Hearts requested a review from priteshbandi June 30, 2024 08:30
Signed-off-by: Patrick Zheng <[email protected]>
Copy link

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Two-Hearts Two-Hearts merged commit 0bcf659 into notaryproject:main Jul 2, 2024
9 checks passed
@Two-Hearts Two-Hearts deleted the enhance branch July 2, 2024 01:19
@Two-Hearts Two-Hearts mentioned this pull request Jul 9, 2024
6 tasks
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.

4 participants