{"id":26906886,"url":"https://github.com/etaaa/queue-it-proof-of-work-python","last_synced_at":"2025-11-09T11:03:28.250Z","repository":{"id":53397362,"uuid":"483577362","full_name":"etaaa/Queue-it-Proof-of-Work-Python","owner":"etaaa","description":"A Python solution for Queue-it's Proof-of-Work challenge","archived":false,"fork":false,"pushed_at":"2022-12-04T16:27:41.000Z","size":4,"stargazers_count":28,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T11:21:17.196Z","etag":null,"topics":["proof-of-work","python","queueit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/etaaa.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}},"created_at":"2022-04-20T08:50:01.000Z","updated_at":"2025-02-05T18:14:39.000Z","dependencies_parsed_at":"2023-01-23T01:16:39.991Z","dependency_job_id":null,"html_url":"https://github.com/etaaa/Queue-it-Proof-of-Work-Python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/etaaa/Queue-it-Proof-of-Work-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2FQueue-it-Proof-of-Work-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2FQueue-it-Proof-of-Work-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2FQueue-it-Proof-of-Work-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2FQueue-it-Proof-of-Work-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etaaa","download_url":"https://codeload.github.com/etaaa/Queue-it-Proof-of-Work-Python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2FQueue-it-Proof-of-Work-Python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283496070,"owners_count":26845317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-09T02:00:05.828Z","response_time":62,"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":["proof-of-work","python","queueit"],"created_at":"2025-04-01T11:20:25.533Z","updated_at":"2025-11-09T11:03:28.207Z","avatar_url":"https://github.com/etaaa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Queue-it Proof-of-Work\n\nA Python solution for Queue-it's Proof-of-Work challenge (\u003chttps://queue-it.com/blog/proof-of-work-block-bad-bots/\u003e).\n\n## Usage\n\nUsage:\n```python\nimport base64, hashlib, json\n\ndef solveChallenge(input, zeroCount):\n    zeros = \"0\" * zeroCount\n    postfix = 0\n    while True:\n        postfix  += 1\n        stri = input + str(postfix)\n        encodedHash = hashlib.sha256(stri.encode()).hexdigest()\n        if encodedHash.startswith(zeros):\n            x = 10 * [{ \"hash\": encodedHash,\"postfix\": postfix }]\n            return base64.b64encode(json.dumps(x, separators=(',', ':')).encode()).decode()\n            \n# GET THESE VALUES FROM THE RESPONSE WHEN FETCHING\n# THE CHALLENGE AT .../challengeapi/pow/challenge/...\ninput = \"f02b931c-52f0-4507-9406-f1221678dc16\"\nzeroCount = 2\n# RETURNS THE CHALLENGE SOLUTION\nsolution = solveChallenge(input, zeroCount)\nprint(solution)\n```\n\n## Questions\nFor any questions feel free to add and DM me on Discord (eta#1656).\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetaaa%2Fqueue-it-proof-of-work-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetaaa%2Fqueue-it-proof-of-work-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetaaa%2Fqueue-it-proof-of-work-python/lists"}