CodeSampleX

サンプル

verify pkg:npm/node-int64@0.4.0

sha256:9bb6093f86aa6e7899c2aed876490385e978917a43c3724955f557a5f0274b92

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
1
ビルドした署名鍵
1
宣言された環境 linux 24 · ubuntu · glibc 2.39 x64 npm

検証実行環境

環境 コントラクト ステージ 実行日
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

ケース

HOW
ゴール
verify pkg:npm/node-int64@0.4.0
パッケージ
シンボル
  • Int64
作成日
2026-08-26T08:20:22Z

コントラクト

  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

ファイル

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

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

匿名