CodeSampleX

Sample

Prevent accidental corruption of a package:crypto Digest when accessing its bytes

sha256:37417f5369d0f1097efea2a84bac724b25fa4e4acffbd1991b19bea3c3fa5748

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Prevent accidental corruption of a package:crypto Digest when accessing its bytes HOW
Packages
crypto 3.0.7
Environment
dart
Created
2026-08-17T02:06:52Z

Commonly assumed

The Digest.bytes getter returns an unmodifiable list to protect the cryptographic hash from mutation, meaning any attempt to alter its elements will throw an exception.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts