Skip to content

About

Open registry of verified FLOP miner endpoints: every entry checked against the miner and the chain, re-verified daily

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

FLOP miner registry

An open list of FLOP miners and their HTTPS session endpoints, so anyone can reach miners directly. Every entry is checked against the miner itself and against the chain. An entry says nothing about who runs a miner.

  • Data: registry.json on the data branch, re-verified daily. Stable URL: https://raw.githubusercontent.com/Firstset/flop-registry/data/registry.json
  • Add a miner: node scripts/new-entry.mjs https://your-miner and open a PR. See CONTRIBUTING.md.
  • Network: FLOP testnet (genesis 0x918abd58…cfd800).

Entries

One file per miner at miners/testnet/<account>.json:

{
  "account": "5ENXJTDmus1rxo5G6zryJ3jQUb5JNJJKmJ3rRvy6Y7Sk1T9M",
  "endpoint": "https://flop-testnet.firstset.xyz",
  "source": "submitted"
}

source (submitted, github-issue or scan) and references (where a discovered endpoint was found) are optional. Schema: schema/miner.schema.json.

How a miner is verified

The registry trusts no FLOP service. It uses the FLOP mailbox and FLOPScan only as relays, for data that it then verifies itself.

  1. Session proof: a fresh random challenge goes to <endpoint>/session/info-proof. The response must be signed by the miner's session key, for testnet's genesis and the entry's account. It also states the model, worker build and readiness.
  2. Key binding: the session key is self-asserted, so it must also appear in a session offer signed by the miner account, or in an on-chain compute channel. This stops anyone from putting someone else's account behind their own server. Offers come from the mailbox's public /api/session-offers list, and their signatures are checked here.
  3. Chain: the account must be a registered, active miner (minerStaking) with a calibration (hwCalibration).

The snapshot reports each miner as ok, not-ready (proof is valid but the miner reports not ready) or error. It also records lastOkAt and consecutiveFailures, counted in days.

Automation (GitHub Actions)

Workflow When What it does
check-pr.yml Every PR Verifies added, changed and removed entries, posts a report and labels the PR. Optional auto-merge.
daily.yml Daily Re-verifies every entry and publishes the snapshot to the data branch. Opens a PR removing miners that failed 7 days in a row. Runs discovery and opens a PR adding new verified miners.

Auto-merge. Make check a required status check on main, then set the repository variable AUTO_MERGE=true. PRs that touch only entry files and pass every check with no warnings are then squash-merged. Until then, the registry:auto-merge-eligible label shows which PRs would merge.

Discovery

  • scripts/discover-github.mjs reads every issue and comment in the configured GitHub repositories and verifies every endpoint it finds.
  • scripts/scan.mjs expands from known miners: other worker ports on the same host, sibling hostnames from certificate logs, GitHub-wide search, and optionally Shodan (SHODAN_API_KEY). Every candidate records where it came from (foundBy).
  • scripts/promote.mjs turns verified discoveries into entries.

Settings (repositories, search queries, ports, denylists, prune threshold) are in config/registry.json.

Use the verifier in your own code

npm install github:Firstset/flop-registry#v0.1.0
import { connect, verifyMiner } from "flop-registry/verify";
const ctx = await connect("testnet");
const result = await verifyMiner(ctx, { endpoint: "https://flop-testnet.firstset.xyz" });

The entry schema, the snapshot format (schemaVersion) and these exports are versioned with semver tags.

Running locally

npm ci
node scripts/verify.mjs                                   # → data/registry.json
node scripts/check-pr.mjs --local miners/testnet/<account>.json
GITHUB_TOKEN=$(gh auth token) node scripts/discover-github.mjs
GITHUB_TOKEN=$(gh auth token) node scripts/scan.mjs
node scripts/promote.mjs data/discovered/github.json data/discovered/scan.json --dry-run

data/ holds working files and is not committed.

Security notes

  • check-pr.yml uses pull_request_target so it can comment on PRs from forks. It checks out only the base branch and reads PR files through the API as JSON data. Never add a step that checks out or runs the PR head.
  • Endpoints are probed only when they resolve to public addresses.
  • The verifier loads miner-admission.js and compute-channel/offers.js from @flop-labs/sdk, which are not public exports, so the SDK is pinned exactly. Re-check those modules when upgrading it.

License

Code: MIT (LICENSE). Data in miners/ and the published snapshot: CC0 1.0.

About

Open registry of verified FLOP miner endpoints: every entry checked against the miner and the chain, re-verified daily

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages