{"id":32667280,"url":"https://github.com/v0id-user/coin","last_synced_at":"2026-05-14T21:03:06.244Z","repository":{"id":319815208,"uuid":"1079683030","full_name":"v0id-user/coin","owner":"v0id-user","description":"A minimal blockchain implementation exploring how Bitcoin and proof-of-work systems function.","archived":false,"fork":false,"pushed_at":"2025-10-20T10:09:32.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-20T10:27:30.661Z","etag":null,"topics":["bitcoin","block","blockchain","coin","crypto","network"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/v0id-user.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":"2025-10-20T08:13:10.000Z","updated_at":"2025-10-20T10:22:20.000Z","dependencies_parsed_at":"2025-10-20T10:27:40.373Z","dependency_job_id":"49ab23f5-afd5-4d5b-a2d5-3a6ca32d10ba","html_url":"https://github.com/v0id-user/coin","commit_stats":null,"previous_names":["v0id-user/coin"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/v0id-user/coin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0id-user%2Fcoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0id-user%2Fcoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0id-user%2Fcoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0id-user%2Fcoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v0id-user","download_url":"https://codeload.github.com/v0id-user/coin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0id-user%2Fcoin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33043249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["bitcoin","block","blockchain","coin","crypto","network"],"created_at":"2025-11-01T02:01:00.280Z","updated_at":"2026-05-14T21:03:06.240Z","avatar_url":"https://github.com/v0id-user.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coin\n\nA minimal blockchain implementation exploring how Bitcoin and proof-of-work systems function.\n\n**Demo video:**\n\n![Demo video](./demo.gif)\n\n## Overview\n\nThis project demonstrates the core concepts of blockchain technology:\n- Proof of Work (PoW) mining\n- Block validation\n- Chain consensus\n- Client-server architecture\n\n## Requirements\n\nPure Python 3 - no external dependencies required. Uses only the standard library.\n\nWe use `uv` for package management, but you can run it directly with `python3` if preferred.\n\n## Usage\n\n**Start the server:**\n```bash\npython main.py server\n```\n\n**Mine and submit a block (in another terminal):**\n```bash\npython main.py client \"Your transaction data here\"\n```\n\n## How it Works\n\n1. Server maintains a blockchain stored as a JSON list\n2. Clients fetch the last block hash\n3. Clients mine new blocks using SHA256 with configurable difficulty\n4. Server validates:\n   - Hash correctness (SHA256 of prev_hash + timestamp + data + nonce)\n   - Difficulty requirement (leading zeros)\n   - Chain continuity (prev_hash matches last block)\n5. Valid blocks are appended to the chain\n\n## Files\n\n- `main.py` - Entry point (server/client modes)\n- `server.py` - HTTP server with validation endpoints\n- `client.py` - Mining client\n- `pow.py` - Proof of Work algorithm + validation\n- `schema.py` - Block data structure\n- `db.py` - Simple key-value storage\n\n## License\n\nISC\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv0id-user%2Fcoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv0id-user%2Fcoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv0id-user%2Fcoin/lists"}