Skip to content

0.33.0-beta.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Sep 08:25
· 0 commits to master since this release
8b1f92d

feat!: asset canister evidence and state hash length-prefix every variable-length field

The encoding hashed for the evidence of a proposed batch, and for the state hash, now
length-prefixes every variable-length field -- asset keys, content types, content encodings,
header names and values, the declared sha256, and asset content -- and hashes the number of
entries in a header map, behind a version-tagged domain separator. Every operation in the
encoding is now self-delimiting, which makes the digest injective over the change a batch
applies, and the encoding is specified under compute_evidence in
docs/design/asset-canister-interface.md.

The evidence of a SetAssetContent operation now covers last_chunk whether or not chunk_ids
is empty, matching the content that commit_batch stores for the same operation.

The asset canister now reports api_version 3. dfx deploy --by-proposal and
dfx deploy --compute-evidence report an error against an asset canister that reports a lower
version, instead of computing a value that cannot be compared with it.

Upgrade the asset canister and dfx together. Evidence and state hash values that this release
computes differ from the values earlier releases compute over the same assets. Recompute and
re-verify the evidence of any batch proposed before the upgrade. As before, a proposed batch does
not survive a canister upgrade.

fix: dfx new projects install again

vite-plugin-environment 1.1.4 raised its peer dependency to vite >= 8.0, which no longer
resolves against the vite version the frontend templates use, so npm install failed in a
newly created project. The templates now ask for exactly 1.1.3.

chore: bump ic-agent, ic-identity-hsm, ic-utils and ic-transport-types to 0.47.3

Dependencies

Frontend canister

  • Module hash: 5a11daf17bc04059c3f3b570784ce07353fe5d7a6365c3db205de0cde13b3585
  • #4545
  • #4547