CodeSampleX

サンプル

verify pkg:npm/%40exodus/bytes@1.15.1

sha256:d7d04245ed15ae7705efa4d825f38d5cdb01364e42d2aa91ddb363379c185afb

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

実行証拠

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

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

検証実行環境

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

ケース

HOW
ゴール
verify pkg:npm/%40exodus/bytes@1.15.1
パッケージ
シンボル
  • toHex
  • fromHex
  • toBase64
  • fromBase64
  • toBase64url
  • fromBase64url
  • fromBase64any
  • toBase58
  • fromBase58
  • toBase58xrp
  • fromBase58xrp
  • utf8fromString
  • utf8toString
  • utf8fromStringLoose
  • utf8toStringLoose
環境
node 22.23.2
作成日
2026-08-28T10:05:06Z

コントラクト

  1. toHex encodes Uint8Array into a lowercase hex string
  2. fromHex decodes a hex string to Uint8Array and supports format options
  3. fromHex throws SyntaxError on invalid hex input
  4. toBase64 encodes Uint8Array to RFC 4648 standard base64 with padding
  5. fromBase64 decodes RFC 4648 standard base64 string to Uint8Array
  6. toBase64url encodes Uint8Array to URL-safe base64 without padding
  7. fromBase64url decodes URL-safe base64 string to Uint8Array
  8. fromBase64any auto-detects and decodes both standard and URL-safe base64 strings
  9. toBase58 encodes Uint8Array to Bitcoin base58 string and fromBase58 decodes it
  10. toBase58xrp encodes Uint8Array using XRP alphabet and fromBase58xrp decodes it
  11. fromBase58 throws SyntaxError on invalid base58 character
  12. utf8fromString strictly encodes string to Uint8Array and throws TypeError on invalid Unicode
  13. utf8toString strictly decodes Uint8Array to string and throws TypeError on invalid UTF-8 bytes
  14. utf8fromStringLoose and utf8toStringLoose handle invalid Unicode using replacement character

ファイル

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

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

オリジンシーダー

匿名