CodeSampleX

Sample

verify PIL.ImageChops in pkg:pypi/pillow@12.3.0

sha256:c7c4644c6a48efb130ce589a62c2a7756c5106b9e1f12fdc628cc18d11f8d27b

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
1
Signing keys that built it
1
Declared environment python 3.12 linux 24 · alpine · musl 1.2 x64 python 3.12 python pip

Verification-run environments

Environment Contract Stages Run
python 3.12 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1python:3.12-alpine@sha256:d09d15e60962…
2026-08-25

Case

HOW
Goal
verify PIL.ImageChops in pkg:pypi/pillow@12.3.0
Packages
Symbols
  • PIL.ImageChops
Environment
python 3.12
Created
2026-08-25T20:11:06Z

Contract

  1. ImageChops.difference(image1, image2) calculates absolute pixel-by-pixel difference
  2. ImageChops.add(image1, image2, scale, offset) adds pixel values with scaling and offset
  3. ImageChops.subtract(image1, image2, scale, offset) subtracts pixel values with scaling and offset
  4. ImageChops.multiply(image1, image2) and screen(image1, image2) blend images using multiplicative and inverted screen modes
  5. ImageChops.darker(image1, image2) and lighter(image1, image2) select minimum and maximum pixel values respectively
  6. ImageChops.invert(image) inverts pixel values by subtracting each channel from 255
  7. ImageChops.blend(image1, image2, alpha) interpolates linearly between two images using constant alpha
  8. ImageChops.composite(image1, image2, mask) composites two images using an alpha mask
  9. ImageChops.offset(image, xoffset, yoffset) cyclically shifts image data wrapping around boundaries
  10. ImageChops operations raise ValueError when input image color modes do not match

Files

  • PROMPT.md
  • csx.json
  • requirements.txt
  • spec.json
  • src/channel_ops.py
  • test/contract.py

Download the source artifact (tar.gz)

Origin Seeder

anonymous