Skip to content

Conversation

ilbertt
Copy link
Member

@ilbertt ilbertt commented Jul 25, 2025

Description

Accounts for the clock drift between the current time and the IC network time when checking the certificate freshness. Adds some helper methods and functions, check the updated changelog for a list of all the changes.

Additionally, fixes #686.

How Has This Been Tested?

Added unit tests to check the new clock drift adjustments in the certificate verification.

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

Copy link
Contributor

github-actions bot commented Jul 25, 2025

size-limit report 📦

Path Size
@dfinity/agent 48.2 KB (+0.58% 🔺)
@dfinity/assets 53.23 KB (+0.67% 🔺)
@dfinity/auth-client 19.38 KB (0%)
@dfinity/candid 13.22 KB (0%)
@icp-sdk/core 91 B (0%)
@dfinity/identity 18.81 KB (0%)
@dfinity/identity-secp256k1 33.03 KB (0%)
@dfinity/principal 4.44 KB (0%)
@dfinity/use-auth-client 59.11 KB (+0.55% 🔺)

@ilbertt ilbertt marked this pull request as ready for review July 25, 2025 11:59
@ilbertt ilbertt requested a review from a team as a code owner July 25, 2025 11:59
@ilbertt ilbertt requested a review from mraszyk July 25, 2025 12:00
Copy link
Contributor

@mraszyk mraszyk left a comment

Choose a reason for hiding this comment

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

Left a couple suggestions.

@ilbertt ilbertt requested review from mraszyk and nathanosdev August 4, 2025 13:30
Copy link
Contributor

@mraszyk mraszyk left a comment

Choose a reason for hiding this comment

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

Looks good to me module a few comments.

ilbertt and others added 2 commits August 4, 2025 17:56
Co-authored-by: mraszyk <31483726+mraszyk@users.noreply.github.com>
@ilbertt ilbertt requested a review from mraszyk August 4, 2025 16:36
ilbertt and others added 2 commits August 4, 2025 21:04
Co-authored-by: mraszyk <31483726+mraszyk@users.noreply.github.com>
@ilbertt ilbertt merged commit 84a6116 into main Aug 5, 2025
28 checks passed
@ilbertt ilbertt deleted the luca/SDK-2204-clock-drift-certificate branch August 5, 2025 09:21
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.

Correct error if wasm for BLS signature verification can't be instantiated

3 participants