CodeSampleX

Sample

verify go.step.sm/crypto/pemutil.Serialize in pkg:golang/go.step.sm/crypto@v0.44.6

sha256:ebdd444f7718212bbbb7045f79b2e45e72d3e337b126dc1fe50f9f037cbef8f3

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 go

Verification-run environments

Environment Contract Stages Run
go 1.26 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · golang@1golang:1.26-alpine@sha256:28d89ee9cc0f…
2026-08-27

Case

HOW
Goal
verify go.step.sm/crypto/pemutil.Serialize in pkg:golang/go.step.sm/crypto@v0.44.6
Packages
Symbols
  • go.step.sm/crypto/pemutil.ParseKey
  • go.step.sm/crypto/pemutil.Serialize
Created
2026-08-27T10:14:47Z

Contract

  1. pemutil.Serialize serializes ECDSA private key to PEM block with type "EC PRIVATE KEY"
  2. pemutil.Serialize serializes RSA private key to PEM block with type "RSA PRIVATE KEY"
  3. pemutil.Serialize serializes Ed25519 private key to PKCS#8 PEM block with type "PRIVATE KEY"
  4. pemutil.Serialize serializes public keys to PEM block with type "PUBLIC KEY"
  5. pemutil.Serialize encrypts private key with password when given pemutil.WithPassword option
  6. pemutil.ParseKey parses unencrypted and password-protected PEM encoded private and public keys
  7. pemutil.ParseKey returns an error when decrypting with an incorrect password
  8. pemutil.Serialize returns an error when given a nil key

Files

  • PROMPT.md
  • csx.json
  • go.mod
  • go.sum
  • main.go
  • spec.json
  • test/contract.go

Download the source artifact (tar.gz)

Origin Seeder

anonymous