* feat(bnb): read-only on-chain proof verification Close the BNB SDK lane's gap: proof artifacts were self-attested (hashes recomputable) but nothing confirmed the chain. Add a new read-only BSC JSON-RPC verifier and surface it everywhere proof is shown. - crates/chain-verifier: eth_chainId, eth_getCode, eth_getTransactionReceipt. ABI-free, no keys/signing, offline-safe (skipped when BSC_RPC_URL unset). 11 unit tests. - /proof/verify: append onchain_* checks + onchain_configured; passed now means "no check failed" so skipped does not block. - dashboard /proof: dedicated On-chain Verification section, skipped handling. - clients/proof-verifier/verify.py: --rpc / BSC_RPC_URL opt-in, stdlib urllib, mirrors the Rust checks; offline default unchanged. - docs: BNB_AGENT_IDENTITY, proof-verifier README, PRIZE_MAP, WHATS_NEW. Verified against live BSC mainnet: competition contract 0x212c61…aed5 returns ~2.5 KB of deployed bytecode via eth_getCode (chain id 56). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ci): green rust clippy + cargo-deny (pre-existing failures) These failures predate the on-chain-verification feature and block the merge; fixing them here unblocks it and moves the repo toward green. - clippy (CI clippy 1.96 is stricter than local 0.1.94): convert three unnecessary_sort_by key-extraction sorts to sort_by_key in guardrail-cli (identity.rs, market.rs, portfolio.rs). Decimal keys are Copy+Ord. - cargo-deny: add a [licenses] allow-list (was empty, so every crate — including this MIT workspace — was rejected). Standard permissive set. Not fixed here: the docker dashboard image build (pnpm v10 frozen-lockfile + sharp build-script) — unrelated infra, non-required check; the dashboard deploys to Vercel separately. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ci): allow CDLA-Permissive-2.0 license (webpki-roots) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
14 lines
276 B
TOML
14 lines
276 B
TOML
[package]
|
|
name = "chain-verifier"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
thiserror.workspace = true
|
|
reqwest.workspace = true
|
|
tokio.workspace = true
|
|
tracing.workspace = true
|