{"id":19902592,"url":"https://github.com/johnbasrai/zkp-cp","last_synced_at":"2026-05-09T20:06:38.736Z","repository":{"id":197923516,"uuid":"699616495","full_name":"JohnBasrai/zkp-cp","owner":"JohnBasrai","description":"Chaum-Pedersen Zero Knowledge Proof","archived":false,"fork":false,"pushed_at":"2024-10-19T17:59:25.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T21:22:30.396Z","etag":null,"topics":["tokio","zkp","zkproof"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/JohnBasrai.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}},"created_at":"2023-10-03T01:42:23.000Z","updated_at":"2024-12-01T03:58:55.000Z","dependencies_parsed_at":"2025-01-11T21:21:57.062Z","dependency_job_id":"81bf9a3a-9fd2-499d-9ceb-6ccc7907ca37","html_url":"https://github.com/JohnBasrai/zkp-cp","commit_stats":null,"previous_names":["johnbasrai/zkp-cp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnBasrai%2Fzkp-cp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnBasrai%2Fzkp-cp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnBasrai%2Fzkp-cp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnBasrai%2Fzkp-cp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnBasrai","download_url":"https://codeload.github.com/JohnBasrai/zkp-cp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241329417,"owners_count":19944985,"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":["tokio","zkp","zkproof"],"created_at":"2024-11-12T20:18:35.364Z","updated_at":"2025-11-25T01:05:10.417Z","avatar_url":"https://github.com/JohnBasrai.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chaum-Pedersen Zero Knowledge Proof in Rust\nThis project implements a Chaum–Pedersen Zero Knowledge Proof (ZKP) protocol using Rust, with gRPC networking and async communication between client and server.\n\nChaum–Pedersen ZKP is a cryptographic proof that allows a prover to convince a verifier they know a discrete logarithm without revealing the secret value.\n\n## Key Rust Crates Used\n\n| Crate          | Purpose                                                     |\n|----------------|-------------------------------------------------------------|\n| **tonic**      | Rust implementation of gRPC for client/server communication |\n| **tokio**      | Asynchronous runtime for network applications |\n| **num-bigint** | Big integer arithmetic for cryptographic operations |\n| **rand**       | Cryptographically secure random number generation |\n| **clap**       | Command line argument parsing |\n| **anyhow**     | Improved error handling |\n| **prost**      | Protocol Buffers implementation |\n\n## Building\n\n```bash\ncargo build --release\n```\n\n## Running\n\nIn one terminal, start the server:\n```bash\ncargo run --release --bin server\n```\n\nIn another terminal, run the client:\n```bash\ncargo run --release --bin client -- --user-name \"alice\"\n```\n\n**What happens next:**\n\n1. **Registration Step**: You'll be prompted to enter a password to register the user\n   ```\n   Password: [enter any password, e.g., \"mypassword123\"]\n   ✅ Registration was successful\n   ```\n\n2. **Authentication Step**: You'll immediately be prompted to enter the password again to login\n   ```\n   Please provide the password (to login):\n   Password (to login): [enter the SAME password again]\n   ✅Login successful! session_id: abc123xyz\n   ```\n\n**Important**: Use the same password for both steps. The first creates your account, the second proves you know the password using Zero Knowledge Proof - the server never sees your actual password!\n\n## Testing\n\nRun the test suite to verify the ZKP implementation:\n```bash\ncargo test\n```\n\n## Containerization\nWork in progress.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnbasrai%2Fzkp-cp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnbasrai%2Fzkp-cp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnbasrai%2Fzkp-cp/lists"}