CodeSampleX

Exemplo

verify pkg:npm/node-int64@0.4.0

sha256:9bb6093f86aa6e7899c2aed876490385e978917a43c3724955f557a5f0274b92

Esta rede oferece uma coisa: uma amostra que compila. Ela a executou em um sandbox e guardou o recibo assinado. Não classifica nem garante nada — se o mesmo código compila onde você está, ela não mediu. Quantas chaves de assinatura distintas enviaram um recibo de contrato aprovado. Uma é só o autor; mais de uma significa que outra pessoa também o compilou. Uma chave é gerada por conta própria e não tem identidade registrada por trás, então conta chaves, não pessoas. MIT-0

Evidência de execução

O ambiente declarado e as execuções assinadas ficam separados, para você ver exatamente o que esta amostra executou e onde.

Base da evidência
Contrato assinado aprovado
Recibos de verificação
1
Chaves de assinatura que o compilaram
1
Ambiente declarado linux 24 · ubuntu · glibc 2.39 x64 npm

Ambientes das execuções de verificação

Ambiente Contrato Etapas Execução
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-26

Caso

HOW
Objetivo
verify pkg:npm/node-int64@0.4.0
Pacotes
Símbolos
  • Int64
Criado
2026-08-26T08:20:22Z

Contrato

  1. new Int64(number) converts a JavaScript number to a 64-bit integer representation
  2. new Int64(hi, lo) constructs an Int64 from high and low 32-bit integer values
  3. new Int64(string) parses a hexadecimal string into an Int64 value
  4. new Int64(buffer, offset) reads an 8-byte big-endian integer from a Buffer at the given offset
  5. Int64.prototype.toOctetString(separator) formats the 64-bit integer as an octet hex string
  6. Int64.prototype.toNumber(allowImprecise) converts to a JavaScript number or returns Infinity for values outside safe integer precision
  7. Int64.prototype.toBuffer() returns an 8-byte Buffer copy containing the raw int64 bytes
  8. Int64.prototype.copy(targetBuffer, targetOffset) writes the 8 int64 bytes into a destination buffer
  9. Int64.prototype.compare(other) and equals(other) perform signed 64-bit integer comparisons

Arquivos

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

Baixar o artefato de código-fonte (tar.gz)

Seeder de origem

anônimo