CodeSampleX

Sample

verify pkg:npm/buffer@5.7.1

sha256:82a6b293fbe5f339c46db7e941f423b9ea17e4b66f0ffbe3633dfaf90c6271f0

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 linux 24 · ubuntu · glibc 2.39 x64 npm

Verification-run environments

Environment Contract Stages Run
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5…
2026-08-28

Case

HOW
Goal
verify pkg:npm/buffer@5.7.1
Packages
Symbols
  • Buffer
Created
2026-08-28T08:08:47Z

Contract

  1. Buffer.from creates Buffer from string with default utf8 encoding
  2. Buffer.from creates Buffer from string with hex and base64 encodings
  3. Buffer.from creates Buffer from byte array
  4. Buffer.from creates Buffer copy from existing Buffer
  5. Buffer.from creates Buffer from ArrayBuffer with byteOffset and length
  6. Buffer.alloc creates zero-filled buffer of specified size
  7. Buffer.alloc creates filled buffer with custom fill value
  8. Buffer.allocUnsafe creates uninitialized buffer of specified size
  9. Buffer.isBuffer returns true for Buffer instances and false for non-buffers
  10. Buffer.isEncoding returns true for valid encodings and false for invalid encodings
  11. Buffer.concat joins multiple Buffer instances into a single Buffer
  12. Buffer.byteLength returns byte length of strings across different encodings
  13. Buffer.compare orders buffers lexicographically
  14. Buffer instance supports write, toString, toJSON, slice, and binary read/write methods
  15. Buffer.from throws TypeError when value is a number
  16. Buffer.from throws TypeError when encoding is unknown
  17. Buffer.alloc throws RangeError when size is negative
  18. Buffer.alloc throws TypeError when size is not a number
  19. Buffer.concat throws TypeError when list is not an Array

Files

  • PROMPT.md
  • csx.json
  • package-lock.json
  • package.json
  • spec.json
  • test/contract.mjs

Download the source artifact (tar.gz)

Origin Seeder

anonymous