Skip to main content

recomputeDeclaredContentHash

HardKAS SDK


HardKAS SDK / artifacts/src / recomputeDeclaredContentHash

Function: recomputeDeclaredContentHash()

recomputeDeclaredContentHash(artifact): string

Defined in: packages/artifacts/src/canonical.ts:186

Recomputes an artifact's content hash with the version it DECLARES. This is the single function to use outside a producer (IC-1′.8): a bare calculateContentHash(x) would silently apply the current version to a legacy artifact and report a false mismatch.

Parameters​

artifact​

unknown

Returns​

string