{"id":29064515,"url":"https://github.com/ducks/gitvote","last_synced_at":"2025-07-31T22:07:28.178Z","repository":{"id":300464557,"uuid":"1006247690","full_name":"ducks/gitvote","owner":"ducks","description":"Git-based cryptographically verifiable voting system using signed commits, pull requests, and fully auditable blockchain-style block generation.","archived":false,"fork":false,"pushed_at":"2025-06-21T20:40:59.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-21T21:30:19.761Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ducks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-06-21T20:29:59.000Z","updated_at":"2025-06-21T20:41:02.000Z","dependencies_parsed_at":"2025-06-21T21:41:16.492Z","dependency_job_id":null,"html_url":"https://github.com/ducks/gitvote","commit_stats":null,"previous_names":["ducks/gitvote"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ducks/gitvote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks%2Fgitvote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks%2Fgitvote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks%2Fgitvote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks%2Fgitvote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ducks","download_url":"https://codeload.github.com/ducks/gitvote/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks%2Fgitvote/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262227890,"owners_count":23278266,"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","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":"2025-06-27T09:07:14.646Z","updated_at":"2025-07-31T22:07:28.167Z","avatar_url":"https://github.com/ducks.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitVote\n\n**GitVote** is a Git-native cryptographic voting protocol.\n\nVoters submit votes via pull requests on dedicated proposal branches. The\nsystem produces an immutable, hash-linked, fully auditable vote ledger, backed\nentirely by Git and simple files.\n\n## Features\n\n- Voters submit votes via simple gitvote CLI\n- Each voter is uniquely identified via their Git identity (user.name + user.email)\n- Duplicate voting is automatically prevented\n- Votes are submitted as pull requests\n- CI system automatically validates votes before merging\n- After merges, CI builds tamper-evident hash-linked blocks\n- Full auditability: results can be independently verified offline\n\n---\n\n## Getting Started\n\n### Clone the Repo for the CLI tool\n\n```bash\ngit clone git@github.com/ducks/gitvote.git\ncd gitvote\ncargo build --release\n```\n\nThe CLI will be available at:\n```\n./target/release/gitvote --help\n```\n\n## Voter Workflow\n\n1. Fork the voting repo\n- Visit repo (e.g. https://github.com/ducks/gitvote-test)\n- Click **Fork** (top right corner in Github UI)\n\n2. Clone your fork locally\n```\ngit clone git@github.com:YOU/gitvote-gov.git\ncd gitvote-gov\ngit checkout proposal/001-color-vote\n```\n\n3. Cast your vote\n\nRun CLI from your built `gitvote` binary:\n\n`/path/to/gitvote/target/release/gitvote cast --choice purple`\n\nThis will:\n- Write your vote file into votes/\n- Commit your vote using your Git identity\n- (Optionally) Sign the commit if GPG signing is enabled\n\n4. Push your vote to your fork\n\n`git push origin proposal/001-color-vote`\n\n5. Open a pull request\n\n- On GitHub, open a PR from your fork’s proposal/001-color-vote branch\ninto the upstream proposal/001-color-vote branch.\n- CI will automatically validate your vote.\n\n## Admin Workflow\n\n### Validate Votes (runs automatically via CI)\n\nEach PR triggers:\n\n`gitvote validate`\n\nWhich verifies:\n- Vote file format\n- Schema compliance (`schema.json`)\n- Duplication prevention (unique voters only)\n\n### Build Immutable Blocks\n\nAfter valid PRs are merged, CI automatically runs:\n\n`gitvote build-chain`\n\nThis creates immutable hash-linked blocks:\n\n```\nblocks/block-0000.json\nblocks/block-0001.json\n```\n\n### Tally Results\n\nAt any time, you can generate vote tallies from the proposal branch:\n\n`gitvote tally`\n\nExample results:\n\n```\nVote Tally:\n  purple votes: 3\n  red votes: 2\nTotal unique voters: 5\n```\n\n## Vote Intent Format\n\nVote files are written to:\n\n`votes/vote-\u003cuuid\u003e.json`\n\nExample file contents:\n\n```\n{\n  \"voter\": \"Alice Voter \u003calice@example.com\u003e\",\n  \"choice\": \"blue\",\n  \"timestamp\": \"2025-06-22T23:55:41Z\",\n  \"signature\": \"a7490554...fake-sig\"\n}\n```\n\n## Block Format\n\nGenerated blocks contain:\n\n```\n{\n  \"index\": 1,\n  \"timestamp\": \"2025-06-22T23:55:41Z\",\n  \"choice\": \"blue\",\n  \"voter\": \"Alice Voter \u003calice@example.com\u003e\",\n  \"prev_hash\": \"abc123...\",\n  \"hash\": \"def456...\",\n  \"signature\": \"a7490554...\"\n}\n```\n\n- Each block includes the vote, timestamp, voter identity, and hash chain linkage.\n- The full chain is immutable and verifiable offline.\n\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducks%2Fgitvote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fducks%2Fgitvote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducks%2Fgitvote/lists"}