{"id":37978462,"url":"https://github.com/chronicleprotocol/challenger-rs","last_synced_at":"2026-01-16T18:32:30.803Z","repository":{"id":194299191,"uuid":"688629280","full_name":"chronicleprotocol/challenger-rs","owner":"chronicleprotocol","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-10T13:35:43.000Z","size":327,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-09-10T17:47:59.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chronicleprotocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-07T18:53:05.000Z","updated_at":"2025-09-10T13:35:37.000Z","dependencies_parsed_at":"2023-10-19T08:29:28.720Z","dependency_job_id":"0f421780-076c-47db-ab32-0afd79ecca25","html_url":"https://github.com/chronicleprotocol/challenger-rs","commit_stats":null,"previous_names":["chronicleprotocol/challenger-rs"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/chronicleprotocol/challenger-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicleprotocol%2Fchallenger-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicleprotocol%2Fchallenger-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicleprotocol%2Fchallenger-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicleprotocol%2Fchallenger-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chronicleprotocol","download_url":"https://codeload.github.com/chronicleprotocol/challenger-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicleprotocol%2Fchallenger-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T18:32:30.725Z","updated_at":"2026-01-16T18:32:30.791Z","avatar_url":"https://github.com/chronicleprotocol.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Challenger Rust version\n\nChallenger searches for `opPoked` events for `ScribeOptimistic` contract. Verifies poke schnorr signature and challenges it, if it's invalid\n\n```\nUsage: challenger [OPTIONS] --rpc-url \u003cRPC_URL\u003e\n\nOptions:\n  -a, --addresses \u003cADDRESSES\u003e\n          ScribeOptimistic contract addresses. Example: `0x891E368fE81cBa2aC6F6cc4b98e684c106e2EF4f`\n      --rpc-url \u003cRPC_URL\u003e\n          Node HTTP RPC_URL, normally starts with https://****\n      --flashbot-rpc-url \u003cFLASHBOT_RPC_URL\u003e\n          Flashbot Node HTTP RPC_URL, like https://rpc-sepolia.flashbots.net/fast\n      --secret-key \u003cRAW_SECRET_KEY\u003e\n          Private key in format `0x******` or `*******`. If provided, no need to use --keystore\n      --keystore \u003cKEYSTORE_PATH\u003e\n          Keystore file (NOT FOLDER), path to key .json file. If provided, no need to use --secret-key [env: ETH_KEYSTORE=]\n      --password \u003cRAW_PASSWORD\u003e\n          Key raw password as text\n      --password-file \u003cPASSWORD_FILE\u003e\n          Path to key password file [env: ETH_PASSWORD=]\n      --chain-id \u003cCHAIN_ID\u003e\n          If no chain_id provided binary will try to get chain_id from given RPC\n      --from-block \u003cFROM_BLOCK\u003e\n          Block number to start from\n  -h, --help\n          Print help\n  -V, --version\n          Print version\n```\n\n## Example\n\nStarting with private key\n\n```bash\nchallenger --addresses 0x891E368fE81cBa2aC6F6cc4b98e684c106e2EF4f --addresses 0x******* --rpc-url http://localhost:3334 --secret-key 0x******\n```\n\nStarting with key file and password\n\n```bash\nchallenger -a 0x891E368fE81cBa2aC6F6cc4b98e684c106e2EF4f -a 0x******* --rpc-url http://localhost:3334 --keystore /path/to/key.json --password-file /path/to/file\n```\n\n## Logging level\n\nBy default `challenger` uses log level `info`.\nIf you want to get debug information use `RUST_LOG=debug` env variable !\n\n# Development\n\n## Rust toolchain\n\nFor this project we use the nightly toolchain. To install it, run:\n```sh\nrustup toolchain install nightly\n```\n\nTo set the nightly toolchain as the default for folder, run:\n```sh\nrustup override set nightly\n```\n\nAs well we provide a `rust-toolchain.toml` file that sets the nightly toolchain for the project.\n\n### Rust analyzer\n\nFor rust-analyzer to work correctly, you need to install the nightly toolchain and set it as the default for the folder.\nAlso `RUST_TOOLCHAIN` environment variable should be set to `nightly`.\n\nIntellij Example:\n\n```\nsettings -\u003e Language \u0026 Frameworks -\u003e Rust -\u003e Rustfmt\n\nAdd the environment Variable = \"RUSTUP_TOOLCHAIN\": \"nightly\"\n\nAdd Additional argument =  \"+nightly\"\n```\n\n\nZed example:\n\n`.zed/settings.json`\n```json\n// Folder-specific settings\n//\n// For a full list of overridable settings, and general information on folder-specific settings,\n// see the documentation: https://zed.dev/docs/configuring-zed#settings-files\n{\n  \"tab_size\": 2,\n  \"lsp\": {\n    \"rust-analyzer\": {\n      \"initialization_options\": {\n        \"server\": {\n          \"extraEnv\": {\n            \"RUSTUP_TOOLCHAIN\": \"nightly\"\n          }\n        },\n        \"rustfmt\": {\n          \"extraArgs\": [\"+nightly\"]\n        }\n      }\n    }\n  }\n}\n```\n\n\n## Building docker image\n\nSERVER_VERSION have to be same as release but without `v`, if release is `v0.0.10` then `SERVER_VERSION=0.0.10`\n\n```bash\ndocker build --build-arg SERVER_VERSION=0.0.10 -t challenger .\n```\n\nusage:\n\n```bash\ndocker run --rm challenger\n\nChallenger searches for `opPoked` events for `ScribeOptimistic` contract. Verifies poke schnorr signature and challenges it, if it's invalid\n\nUsage: challenger [OPTIONS] --rpc-url \u003cRPC_URL\u003e\n\nOptions:\n  -a, --addresses \u003cADDRESSES\u003e\n          ScribeOptimistic contract addresses. Example: `0x891E368fE81cBa2aC6F6cc4b98e684c106e2EF4f`\n      --rpc-url \u003cRPC_URL\u003e\n          Node HTTP RPC_URL, normally starts with https://****\n      --flashbot-rpc-url \u003cFLASHBOT_RPC_URL\u003e\n          Flashbot Node HTTP RPC_URL, like https://rpc-sepolia.flashbots.net/fast\n      --secret-key \u003cRAW_SECRET_KEY\u003e\n          Private key in format `0x******` or `*******`. If provided, no need to use --keystore\n      --keystore \u003cKEYSTORE_PATH\u003e\n          Keystore file (NOT FOLDER), path to key .json file. If provided, no need to use --secret-key [env: ETH_KEYSTORE=]\n      --password \u003cRAW_PASSWORD\u003e\n          Key raw password as text\n      --password-file \u003cPASSWORD_FILE\u003e\n          Path to key password file [env: ETH_PASSWORD=]\n      --chain-id \u003cCHAIN_ID\u003e\n          If no chain_id provided binary will try to get chain_id from given RPC\n      --from-block \u003cFROM_BLOCK\u003e\n          Block number to start from\n  -h, --help\n          Print help\n  -V, --version\n          Print version\n```\n\n```bash\ndocker run --it --rm --name challenger -e RUST_LOG=debug -a ADDRESS -a ADDRESS2 --rpc-url http://localhost:3334 --secret-key asdfasdfas\n```\n\n## Metrics \u0026 Health checks\n\nBy default challenger exposes metrics and health checks on `:9090/metrics` route.\nMetrics are exposed in prometheus format and health checks are exposed in json format.\n\nHealth check route is `:9090/health`.\n\n`HTTP_PORT` env variable can be used to change the port.\nExample: `HTTP_PORT=8080` will expose metrics on `:8080/metrics` and health checks on `:8080/health`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchronicleprotocol%2Fchallenger-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchronicleprotocol%2Fchallenger-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchronicleprotocol%2Fchallenger-rs/lists"}