{"id":47700594,"url":"https://github.com/redteamsubnet/historical-fingerprinter-challenge","last_synced_at":"2026-05-03T02:06:09.625Z","repository":{"id":347675459,"uuid":"1179418355","full_name":"RedTeamSubnet/historical-fingerprinter-challenge","owner":"RedTeamSubnet","description":"This is a RedTeam Subnet's historical fingerprinter challenge repository.","archived":false,"fork":false,"pushed_at":"2026-04-01T07:51:05.000Z","size":11525,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T03:34:44.108Z","etag":null,"topics":["bittensor","challenge","fastapi","miner","module","python","redteam","subnet"],"latest_commit_sha":null,"homepage":"https://docs.theredteam.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedTeamSubnet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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":"2026-03-12T02:22:49.000Z","updated_at":"2026-04-01T07:50:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/RedTeamSubnet/historical-fingerprinter-challenge","commit_stats":null,"previous_names":["redteamsubnet/historical-fingerprinter-challenge"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/RedTeamSubnet/historical-fingerprinter-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTeamSubnet%2Fhistorical-fingerprinter-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTeamSubnet%2Fhistorical-fingerprinter-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTeamSubnet%2Fhistorical-fingerprinter-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTeamSubnet%2Fhistorical-fingerprinter-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedTeamSubnet","download_url":"https://codeload.github.com/RedTeamSubnet/historical-fingerprinter-challenge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTeamSubnet%2Fhistorical-fingerprinter-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31539229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bittensor","challenge","fastapi","miner","module","python","redteam","subnet"],"created_at":"2026-04-02T17:08:22.297Z","updated_at":"2026-04-08T04:01:09.271Z","avatar_url":"https://github.com/RedTeamSubnet.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Historical Fingerprinter Challenge\n\nThis is a RedTeam Subnet's historical fingerprinter challenge repository.\n\nDocumentation page: \u003chttps://docs.theredteam.io/latest/challenges/historical-fingerprinter-challenge\u003e\n\n## ✨ Features\n\n- RedTeam Subnet challenge\n- Challenge module (Python package)\n- Challenge controller and manager\n- Challenge API (FastAPI)\n\n---\n\n## 🐤 Getting Started\n\n### 1. 🚧 Prerequisites\n\n- Install [**docker** and **docker compose**](https://docs.docker.com/engine/install)\n    - Docker image: [**redteamsubnet61/historical_fingerprinter**](https://hub.docker.com/r/redteamsubnet61/historical_fingerprinter)\n\n[OPTIONAL] For **DEVELOPMENT** environment:\n\n- Install **Python (\u003e= v3.10)** and **pip (\u003e= 23)**:\n    - **[RECOMMENDED] [Miniconda (v3)](https://www.anaconda.com/docs/getting-started/miniconda/install)**\n    - _[arm64/aarch64] [Miniforge (v3)](https://github.com/conda-forge/miniforge)_\n    - _[Python virtual environment] [venv](https://docs.python.org/3/library/venv.html)_\n- Install [**git**](https://git-scm.com/downloads)\n- Setup an [**SSH key**](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh)\n\n### 2. 📥 Download or clone the repository\n\n**2.1.** Prepare projects directory (if not exists):\n\n```sh\n# Create projects directory:\nmkdir -pv ~/workspaces/projects\n\n# Enter into projects directory:\ncd ~/workspaces/projects\n```\n\n**2.2.** Follow one of the below options **[A]**, **[B]** or **[C]**:\n\n**OPTION A.** Clone the repository:\n\n```sh\ngit clone https://github.com/RedTeamSubnet/historical-fingerprinter-challenge.git \u0026\u0026 \\\n    cd historical-fingerprinter-challenge\n```\n\n**OPTION B.** Clone the repository (for **DEVELOPMENT**: git + ssh key):\n\n```sh\ngit clone git@github.com:RedTeamSubnet/historical-fingerprinter-challenge.git \u0026\u0026 \\\n    cd historical-fingerprinter-challenge\n```\n\n**OPTION C.** Download source code:\n\n1. Download archived **zip** or **tar.gz** file from [**releases**](https://github.com/RedTeamSubnet/historical-fingerprinter-challenge/releases).\n2. Extract it into the projects directory.\n3. Enter into the project directory.\n\n#### [OPTIONAL] Install dependencies (for **DEVELOPMENT** environment)\n\n```sh\n# For DEVELOPMENT environment, install dependencies with pip:\npip install -e .[dev]\n# Install pre-commit hooks:\npre-commit install\n```\n\n### 3. 🌎 Configure environment variables\n\n[NOTE] Please, check **[environment variables](#-environment-variables)** section for more details.\n\n```sh\n# Copy '.env.example' file to '.env' file:\ncp -v ./.env.example ./.env\n# Edit environment variables to fit in your environment:\nnano ./.env\n```\n\n### 4. 🏁 Start the server\n\n```sh\n## OPTIONAL: Configure 'compose.override.yml' file.\n# For DEVELOPMENT environment:\ncp -v ./templates/compose/compose.override.dev.yml ./compose.override.yml\n# Edit 'compose.override.yml' file to fit in your environment:\nnano ./compose.override.yml\n\n## 1. Check docker compose configuration is valid:\n./compose.sh validate\n# Or:\ndocker compose config\n\n## 2. Start docker compose:\n./compose.sh start -l\n# Or:\ndocker compose up -d --remove-orphans --force-recreate \u0026\u0026 \\\n    docker compose logs -f -n 100\n```\n\n### 5. ✅ Check server is running\n\nCheck with CLI (curl):\n\n```sh\n# Send a ping request with 'curl' to REST API server and parse JSON response with 'jq':\ncurl -s http://localhost:10001/ping | jq\n```\n\nCheck with web browser:\n\n- Health check: \u003chttp://localhost:10001/health\u003e\n- Swagger: \u003chttp://localhost:10001/docs\u003e\n- Redoc: \u003chttp://localhost:10001/redoc\u003e\n- OpenAPI JSON: \u003chttp://localhost:10001/openapi.json\u003e\n\n### 6. 🛑 Stop the server\n\nDocker runtime:\n\n```sh\n# Stop docker compose:\n./compose.sh stop\n# Or:\ndocker compose down --remove-orphans\n```\n\n👍\n\n---\n\n## ⚙️ Configuration\n\n### 🌎 Environment Variables\n\n[**`.env.example`**](./.env.example):\n\n```sh\n## --- Environment variable --- ##\nENV=LOCAL\nDEBUG=false\n# TZ=UTC\n# PYTHONDONTWRITEBYTECODE=1\n\n\n## -- API configs -- ##\nHFP_CHALLENGE_API_PORT=10001\n# HFP_CHALLENGE_API_CONFIGS_DIR=\"/etc/historical_fingerprinter\"\n# HFP_CHALLENGE_API_LOGS_DIR=\"/var/log/historical_fingerprinter\"\n# HFP_CHALLENGE_API_DATA_DIR=\"/var/lib/historical_fingerprinter\"\n# HFP_CHALLENGE_API_TMP_DIR=\"/tmp/historical_fingerprinter\"\n# HFP_CHALLENGE_API_VERSION=\"1\"\n# HFP_CHALLENGE_API_PREFIX=\"\"\n# HFP_CHALLENGE_API_DOCS_ENABLED=true\n# HFP_CHALLENGE_API_DOCS_OPENAPI_URL=\"{api_prefix}/openapi.json\"\n# HFP_CHALLENGE_API_DOCS_DOCS_URL=\"{api_prefix}/docs\"\n# HFP_CHALLENGE_API_DOCS_REDOC_URL=\"{api_prefix}/redoc\"\n```\n\n---\n\n## 🏗️ Build Docker Image\n\nBefore building the docker image, make sure you have installed **docker** and **docker compose**.\n\nTo build the docker image, run the following command:\n\n```sh\n# Build docker image:\n./scripts/build.sh\n# Or:\ndocker compose build\n```\n\n## 📚 Documentation\n\n- \u003chttps://docs.theredteam.io/latest/challenges\u003e\n\n---\n\n## 📑 References\n\n- RedTeam Subnet: \u003chttps://www.theredteam.io\u003e\n- Bittensor: \u003chttps://www.bittensor.com\u003e\n- FastAPI - \u003chttps://fastapi.tiangolo.com\u003e\n- Docker - \u003chttps://docs.docker.com\u003e\n- Docker Compose - \u003chttps://docs.docker.com/compose\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredteamsubnet%2Fhistorical-fingerprinter-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredteamsubnet%2Fhistorical-fingerprinter-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredteamsubnet%2Fhistorical-fingerprinter-challenge/lists"}