CodeSampleX

Sample

Distinguish TypeError from ValueError for invalid RSA serialization encodings in cryptography 47.0.0

sha256:1d1d614138606e1bc6d92649926179826b98180cdcb6e6a1971b1d11be320f69

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Distinguish TypeError from ValueError for invalid RSA serialization encodings in cryptography 47.0.0 HOW
Packages
cffi 2.0.0 cryptography 47.0.0 pycparser 3.0
Environment
python
Created
2026-08-17T02:11:46Z

Commonly assumed

Developers typically expect invalid RSA serialization argument combinations to raise ValueError.

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