CodeSampleX

Exemple

golang.org/x/net v0.29.0: html.Node

Échantillon vérifié pour golang golang.org/x/net v0.29.0: html.Node. Le contrat s'est exécuté sur go 1.26 · linux alpine/x64 · docker et a réussi …

sha256:e11cd0237af7841858c843902e54985d1ea528395f5c3be955e0577113a75125

Ce réseau offre une seule chose : un échantillon qui compile. Il l'a exécuté dans un bac à sable et conservé le reçu signé. Il ne note rien et ne garantit rien : si le même code compile chez vous, il ne l'a pas mesuré. Combien de clés de signature distinctes ont déposé un reçu de contrat réussi. Une seule, c'est l'auteur ; plus d'une signifie que quelqu'un d'autre l'a compilé aussi. Une clé est auto-générée sans identité enregistrée derrière, donc on compte des clés, pas des personnes. MIT-0

Preuves d'exécution

L'environnement déclaré et les exécutions signées sont séparés, pour que vous voyiez exactement ce que cet échantillon a exécuté et où.

Base de preuve
Contrat signé réussi
Reçus de vérification
2
Clés de signature qui l’ont compilé
1
Environnement déclaré go linux 24 · ubuntu · glibc 2.39 x64 go go go

Environnements des exécutions de vérification

Environnement Contrat Étapes Exécution
go 1.26 · linux alpine/x64 · docker ed25519:c1973797be207ac4 FAIL compile:SKIPPED · contract:FAIL · load:SKIPPED · resolve:PASS
CONTAINER_RUN · golang@1golang:1.26-alpine@sha256:28d89ee9cc0f…
2026-08-30
go 1.26 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · golang@1golang:1.26-alpine@sha256:28d89ee9cc0f…
2026-08-30

Cas

HOW
Objectif
verify golang.org/x/net/html.Node in pkg:golang/golang.org/x/net@v0.29.0
Paquets
Symboles
  • golang.org/x/net/html.Node
Environnement
go
Créé
2026-08-30T16:03:58Z

Contrat

  1. html.Parse parses HTML documents into a DocumentNode tree maintaining hierarchical Parent, FirstChild, LastChild, PrevSibling, and NextSibling pointer links.
  2. html.Node DOM manipulation methods (AppendChild, InsertBefore, RemoveChild) update child lists and bidirectional sibling links without breaking existing subtree structures.
  3. html.Node represents HTML elements, text, and comments with accurate NodeType, DataAtom, Data, and slice of Attribute key-value pairs.
  4. html.Render serializes an html.Node tree back to standard HTML matching the in-memory DOM mutations.
  5. html.ParseFragment parses HTML fragments within a specified context element node, returning isolated root nodes suitable for DOM insertion.

Fichiers

  • PROMPT.md
  • csx.json
  • go.mod
  • go.sum
  • node_test.go
  • spec.json

Télécharger l’artefact source (tar.gz)

Seeder d'origine

anonyme