Verify & Publish Contract Source Code

合約驗證與原始碼公開

Verification is automatic: paste your source and compiler settings, sign with a KYC-verified address, and the server compiles it and compares the result with the code on SCDO Shard0 (EVM). On a match, the source code, ABI and a Read/Write panel appear on the contract page right away.

驗證全自動完成:填寫原始碼和編譯引數,用已透過 KYC 的地址簽名,伺服器即會編譯並與 SCDO Shard0 (EVM) 鏈上程式碼比對。比對一致後,原始碼、ABI 和讀/寫面板會立即顯示在合約頁面。

SCDO Shard0 (EVM)chainId 5680 (0x1630)Automatic / 自動驗證KYC-verified submitters / 需透過 KYC

1Contract合約

2Compiler settings & source編譯引數與原始碼

Official solc releases, checked by SHA-256. / 官方 solc 釋出版,校驗 SHA-256。
Empty = try every contract in the source. / 留空則嘗試原始碼中所有合約。
Must be the same name used at deploy time for a full match. / 與部署時檔名一致才能完全匹配。
Max 1.5 MB, 300 files. Imports are not downloaded: flatten the source or use standard JSON with every file inline. / 最大 1.5 MB、300 個檔案。不會下載 import,請展平原始碼,或使用內聯全部檔案的標準 JSON。

3Sign & KYC簽名與 KYC

Sign the message below with a KYC-verified address (the deployer, the owner, or any KYC-verified address). Signing is free and sends no transaction. Each signature is valid for 10 minutes and works once.

請用已透過 KYC 的地址(部署者、owner 或任意已認證地址)簽署下方訊息。簽名免費,不會傳送交易。每個簽名 10 分鐘內有效,只能使用一次。

A. MetaMask (or another browser wallet) / 瀏覽器錢包

The wallet will ask you to sign when you press "Verify & publish". / 點選"驗證併發布"時錢包會請求籤名。

B. SCDO web wallet / SCDO 網頁錢包(手動簽名)

Open wallet / 開啟錢包 →
KYC registry: liveKYC 登記合約:已上線 — 0x0d245fb56f9e9bdcf05fa93f39d5d29c4cd09335 (KYC Registry — 9Y9 PTY LTD). Connect a wallet or enter a signer address to see its KYC status.(KYC 登記合約 — 9Y9 PTY LTD)。請連線錢包或填寫簽名地址以檢視其 KYC 狀態。

4Verify & publish驗證併發布

Problems? Report here (GitHub).

遇到問題?在這裡反饋(GitHub)。

How it works驗證流程Verified contracts / 已驗證合約

EN How automatic verification works

  1. KYC check. The signed message SCDO contract verification <address> <timestamp> proves which address is submitting. That address must be KYC-verified in the SCDO Shard0 (EVM) KYC registry (live), which stores only a status, tier, expiry and a record hash, never personal data. Registry: 0x0d245fb56f9e9bdcf05fa93f39d5d29c4cd09335 (KYC Registry — 9Y9 PTY LTD). Not verified yet? Complete KYC in the SCDO web wallet (KYC tab).
  2. Compile. The server downloads the exact official solc release you chose (SHA-256 checked, cached) and compiles your source in a sandbox with your optimizer, runs and evmVersion settings.
  3. Compare. The compiled runtime bytecode is compared with eth_getCode on chainId 5680. immutable slots are masked and the metadata hash is compared separately: full match (identical) or partial match (only the metadata hash differs). Where the creation transaction is found, its creation code and constructor arguments are checked too.
  4. Publish. On a match the record is published at once. The contract page shows a "Contract: Verified" badge, the source, ABI and compiler settings, and a Read/Write panel. Your browser re-checks the on-chain code hash live each time the page is opened.

Limits: 2 MB per request, 1.5 MB of source, 60 s compile time, 30 submissions per hour per network. Verification is free; nobody will ask you for keys, seed phrases or a payment. Contracts on SCDO Shard1 (Classic), SCDO Shard2 (Classic), SCDO Shard3 (Classic) and SCDO Shard4 (Classic) are not covered. Details: /verified/METHOD.txt.

中文 自動驗證流程

  1. KYC 檢查:簽名訊息 SCDO contract verification <地址> <時間戳> 用於證明提交人地址。該地址須在 SCDO Shard0 (EVM) KYC 登記合約(已上線)中為"已認證"。註冊合約只存狀態、等級、有效期和記錄雜湊,不存個人資訊。註冊合約地址:0x0d245fb56f9e9bdcf05fa93f39d5d29c4cd09335(KYC 登記合約 — 9Y9 PTY LTD)。尚未認證?請在 SCDO 網頁錢包(KYC 頁面)完成認證。
  2. 編譯:伺服器下載你所選的官方 solc 釋出版(校驗 SHA-256 並快取),按你填寫的最佳化器、runs 和 evmVersion 在沙箱中編譯。
  3. 比對:將編譯得到的執行時位元組碼與 chainId 5680 上的 eth_getCode 比對。immutable 位置會被遮蔽,後設資料雜湊單獨比較:完全匹配(完全相同)或部分匹配(僅後設資料雜湊不同)。如能找到部署交易,還會核對建立位元組碼和建構函式引數。
  4. 釋出:比對一致後立即釋出。合約頁面顯示“合約:已驗證”標記、原始碼、ABI、編譯引數和讀/寫面板。每次開啟頁面時,瀏覽器還會實時複核鏈上程式碼雜湊。

限制:每次請求 2 MB、原始碼 1.5 MB、編譯 60 秒、每個網路每小時 30 次提交。驗證免費,任何人都不會向你索要私鑰、助記詞或付款。SCDO Shard1 (Classic)、SCDO Shard2 (Classic)、SCDO Shard3 (Classic) 和 SCDO Shard4 (Classic) 上的合約不適用。詳情:/verified/METHOD.txt。

Verified contracts / 已驗證合約

Loading… / 載入中…