Skip to content

feat!: verifiable asset canister state#4428

Merged
viviveevee merged 16 commits intomasterfrom
vivee/verify-asset-canister-state
Dec 2, 2025
Merged

feat!: verifiable asset canister state#4428
viviveevee merged 16 commits intomasterfrom
vivee/verify-asset-canister-state

Conversation

@viviveevee
Copy link
Contributor

@viviveevee viviveevee commented Dec 2, 2025

Description

It is currently not possible to verify an asset canister state without having gone through proposals since the first commit. This PR introduces a new function compute_state_hash on asset canisters that can be used to compute a hash of everything. In --verbose mode, dfx will now report the state hash as part of asset sync.

To verify an asset canister's state, hashes between a local deployment and a live deployment can be compared.

Fixes SDK-2342

How Has This Been Tested?

Added e2e

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@viviveevee viviveevee changed the title feat: verifiable asset canister state feat!: verifiable asset canister state Dec 2, 2025
@viviveevee viviveevee marked this pull request as ready for review December 2, 2025 14:34
@viviveevee viviveevee requested a review from a team as a code owner December 2, 2025 14:34
@viviveevee viviveevee merged commit 9f23f97 into master Dec 2, 2025
133 checks passed
@viviveevee viviveevee deleted the vivee/verify-asset-canister-state branch December 2, 2025 17:10
raymondk added a commit that referenced this pull request Dec 3, 2025
* feat!: verifiable asset canister state (#4428)

* chore: update changelog

* fix: handle asset canister pagination (#4432)

* chore: update changelog (#4431)

---------

Co-authored-by: Vivienne Siffert <[email protected]>
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.

2 participants