{"id":20140866,"url":"https://github.com/roynalnaruto/range_proof","last_synced_at":"2025-10-12T07:16:37.567Z","repository":{"id":45770892,"uuid":"256096943","full_name":"roynalnaruto/range_proof","owner":"roynalnaruto","description":"PoC implementation of polynomial commitment scheme based Range Proofs","archived":false,"fork":false,"pushed_at":"2023-09-13T22:19:41.000Z","size":35,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T18:54:58.851Z","etag":null,"topics":["polynomial-commitments","range-proofs","rust-lang","zero-knowledge-proofs"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roynalnaruto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-04-16T03:13:12.000Z","updated_at":"2024-11-07T15:14:11.000Z","dependencies_parsed_at":"2025-04-09T18:43:45.161Z","dependency_job_id":"3a23b768-d07c-4924-860f-df5734502b57","html_url":"https://github.com/roynalnaruto/range_proof","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roynalnaruto/range_proof","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roynalnaruto%2Frange_proof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roynalnaruto%2Frange_proof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roynalnaruto%2Frange_proof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roynalnaruto%2Frange_proof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roynalnaruto","download_url":"https://codeload.github.com/roynalnaruto/range_proof/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roynalnaruto%2Frange_proof/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010647,"owners_count":26084784,"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-10-12T02:00:06.719Z","response_time":53,"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":["polynomial-commitments","range-proofs","rust-lang","zero-knowledge-proofs"],"created_at":"2024-11-13T21:55:24.453Z","updated_at":"2025-10-12T07:16:37.550Z","avatar_url":"https://github.com/roynalnaruto.png","language":"Rust","readme":"# Range Proof\nThe code in this repository is a implementation of the range proof protocol described [here](https://hackmd.io/@dabo/B1U4kx8XI).\n\nThis work is only proof of concept, it is not audited or does not come with any claims.\n\n# Example\n* To prove that `z = 100` lies in the range `[0, 2^8)`\n* Trusted setup\n```rust\nuse commitment_scheme;\n// range: [0, 2^n)\nlet n = 8usize;\n// trusted setup\nlet (pk, vk) = commitment_scheme::trusted_setup(4usize * n).unwrap();\n```\n* [Prover] Create range proof\n```rust\nuse algebra::bls12_381::Fr;\nuse merlin::Transcript;\n// number in the above range\nlet z = Fr::from(100u8);\n// merlin transcript will be used to\n// transform an interactive protocol\n// into a non-interactive protocol\nlet mut proof_transcript = Transcript::new(b\"range_proof\");\n// generate range proof\nlet proof = RangeProof::prove(\u0026pk, n, \u0026z, \u0026mut proof_transcript);\n```\n* [Verifier] Verify range proof\n```rust\n// verification transcript\nlet mut verification_transcript = Transcript::new(b\"range_proof\");\n// verify the above range proof\nlet result = RangeProof::verify(\u0026proof, \u0026vk, n, \u0026mut verification_transcript);\n// assert that the result is ok\nassert!(result.is_ok());\n```\n\n# License\n[In detail here](https://github.com/roynalnaruto/range_proof/blob/master/LICENSE.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froynalnaruto%2Frange_proof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froynalnaruto%2Frange_proof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froynalnaruto%2Frange_proof/lists"}