Snapshot schema 4 stores digestAlgorithm inside the digested payload.
Restore accepts schemas 1-4, verifies the digest for 3 and 4, and
classifies an unknown algorithm as incompatible instead of corrupt so a
future digest change is not misread as corruption. Registered tests
cover the migration and the rejection.