{"id":30268079,"url":"https://github.com/weezy20/qcoin","last_synced_at":"2025-08-16T00:39:23.663Z","repository":{"id":304849547,"uuid":"1019422762","full_name":"weezy20/qcoin","owner":"weezy20","description":"A quantum coin toss (yes/no), but instead of a coin, it uses bits sourced from a quantum random number generator.","archived":false,"fork":false,"pushed_at":"2025-07-30T10:07:45.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-30T10:09:38.887Z","etag":null,"topics":["coin-flip","quantum-computing","quantum-randomness","random"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/qcoin","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/weezy20.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-07-14T09:53:34.000Z","updated_at":"2025-07-30T10:07:50.000Z","dependencies_parsed_at":"2025-07-16T14:16:38.651Z","dependency_job_id":"c634678f-7fda-45b7-ba33-5687bd6f9d7e","html_url":"https://github.com/weezy20/qcoin","commit_stats":null,"previous_names":["weezy20/crng","weezy20/qcoin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weezy20/qcoin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weezy20%2Fqcoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weezy20%2Fqcoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weezy20%2Fqcoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weezy20%2Fqcoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weezy20","download_url":"https://codeload.github.com/weezy20/qcoin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weezy20%2Fqcoin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270652793,"owners_count":24622780,"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-08-15T02:00:12.559Z","response_time":110,"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":["coin-flip","quantum-computing","quantum-randomness","random"],"created_at":"2025-08-16T00:39:19.056Z","updated_at":"2025-08-16T00:39:23.649Z","avatar_url":"https://github.com/weezy20.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qcoin - Quantum Coin Toss\r\n\r\nA quantum-based binary choice maker that performs coin tosses using quantum random number generators. The application tries multiple quantum sources and uses a mix of cryptographically secure RNGs seeded with the quantum bytes obtained from a publicly available QRNG.\r\n\r\n## Installation\r\nYou can build the project from source or install it directly from [crates.io](https://crates.io/crates/qcoin).\r\n\r\n```bash\r\ncargo install qcoin\r\n```\r\n\r\n## Usage\r\n\r\n```bash\r\nqcoin                           # Single coin flip\r\nqcoin -n 10                     # 10 coin flips\r\nqcoin --number 100              # 100 coin flips\r\nqcoin -s entropy.hex            # Use hex string from entropy.hex as entropy source\r\nqcoin --hex \"abc123\"            # Use hex string directly as entropy source\r\nqcoin --hex \"0xff\"              # Use hex string with 0x prefix\r\nqcoin -n 5 --hex \"abc123\"       # 5 flips using hex string\r\nqcoin --hex \"ff\" -o saved.hex   # Use hex and save to custom file\r\n```\r\n\r\n### Command Line Options\r\n\r\n| Flag | Description | Default | Notes |\r\n|------|-------------|---------|-------|\r\n| `-n, --number \u003cflips\u003e` | Number of coin flips | `1` | Must be greater than 0 |\r\n| `-o, --output \u003cfile\u003e` | Output file for quantum entropy | `qrandom.bytes` | Saves quantum or hex entropy |\r\n| `-s, --source \u003cfile\u003e` | Use file as entropy source | None | Supports hex strings or binary data |\r\n| `--hex \u003cstring\u003e` | Use hex string directly as entropy source | None | Supports 0x prefix |\r\n\r\n## How it Works\r\n\r\n### Coin Flip Logic\r\n\r\nCounts 1-bits vs 0-bits in entropy bytes:\r\n- **More 1-bits** → **YES** ✅\r\n- **More 0-bits** → **NO** ❌\r\n\r\n**Single flip**: Uses entropy bytes directly  \r\n**Multiple flips**: `N-1` CSRNG-generated with random bytes as its seed + 1 direct entropy flip\r\n\r\n### Entropy Sources\r\n\r\n1. [ANU QRNG](https://qrng.anu.edu.au/) - Quantum random number generator\r\n2. [qrandom.io](https://qrandom.io/) - Alternative quantum source  \r\n3. User input `--hex \u003centropy\u003e` or `-s/--source \u003cfile\u003e`\r\n4. Cryptographic SRNG - Fallback\r\n5. Saved quantum bytes from `qrandom.bytes`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweezy20%2Fqcoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweezy20%2Fqcoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweezy20%2Fqcoin/lists"}