CodeSampleX

示例

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

sha256:37417f5369d0f1097efea2a84bac724b25fa4e4acffbd1991b19bea3c3fa5748

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Prevent accidental corruption of a package:crypto Digest when accessing its bytes HOW
crypto 3.0.7
环境
dart
创建时间
2026-08-17T02:06:52Z

常见的想当然

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.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执