{"id":21984753,"url":"https://github.com/olegfomenko/risc0-examples","last_synced_at":"2025-07-28T12:09:39.336Z","repository":{"id":265494038,"uuid":"837637142","full_name":"olegfomenko/risc0-examples","owner":"olegfomenko","description":"RISC Zero Pedersen commitment verification example","archived":false,"fork":false,"pushed_at":"2024-12-03T11:03:04.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T01:45:05.593Z","etag":null,"topics":["zkvm"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olegfomenko.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":"2024-08-03T15:05:01.000Z","updated_at":"2025-01-06T16:57:11.000Z","dependencies_parsed_at":"2024-11-29T16:46:21.946Z","dependency_job_id":null,"html_url":"https://github.com/olegfomenko/risc0-examples","commit_stats":null,"previous_names":["olegfomenko/risc0-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olegfomenko/risc0-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegfomenko%2Frisc0-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegfomenko%2Frisc0-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegfomenko%2Frisc0-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegfomenko%2Frisc0-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olegfomenko","download_url":"https://codeload.github.com/olegfomenko/risc0-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegfomenko%2Frisc0-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267513659,"owners_count":24099796,"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-07-28T02:00:09.689Z","response_time":68,"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":["zkvm"],"created_at":"2024-11-29T18:11:10.662Z","updated_at":"2025-07-28T12:09:39.228Z","avatar_url":"https://github.com/olegfomenko.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RISC Zero Pedersen commitment verification example\n\nThis example shows how to verify computation of the Pedersen commitment that consumes private key and amount (also in a\ncouple with group elements G and H) and outputs the commitment in journal.\n\n## Quick Start\n\nFirst, make sure [rustup] is installed. The\n[`rust-toolchain.toml`][rust-toolchain] file will be used by `cargo` to\nautomatically install the correct version.\n\nTo build all methods and execute the method within the zkVM, run the following\ncommand:\n\n```bash\ncargo run --release\n```\n\n### Executing the project locally in development mode\n\nDuring development, faster iteration upon code changes can be achieved by leveraging [dev-mode], we strongly suggest\nactivating it during your early development phase. Furthermore, you might want to get insights into the execution\nstatistics of your project, and this can be achieved by specifying the environment variable `RUST_LOG=\"[executor]=info\"`\nbefore running your project.\n\nPut together, the command to run your project in development mode while getting execution statistics is:\n\n```bash\nRUST_LOG=\"[executor]=info\" RISC0_DEV_MODE=1 cargo run\n```\n\n### Running proofs remotely on Bonsai\n\n_Note: The Bonsai proving service is still in early Alpha; an API key is\nrequired for access. [Click here to request access][bonsai access]._\n\nIf you have access to the URL and API key to Bonsai you can run your proofs\nremotely. To prove in Bonsai mode, invoke `cargo run` with two additional\nenvironment variables:\n\n```bash\nBONSAI_API_KEY=\"YOUR_API_KEY\" BONSAI_API_URL=\"BONSAI_URL\" cargo run\n```\n\n## Directory Structure\n\nIt is possible to organize the files for these components in various ways.\nHowever, in this starter template we use a standard directory structure for zkVM\napplications, which we think is a good starting point for your applications.\n\n```text\nproject_name\n├── Cargo.toml\n├── host\n│   ├── Cargo.toml\n│   └── src\n│       └── main.rs                    \u003c-- [Host code goes here]\n└── methods\n    ├── Cargo.toml\n    ├── build.rs\n    ├── guest\n    │   ├── Cargo.toml\n    │   └── src\n    │       └── method_name.rs         \u003c-- [Guest code goes here]\n    └── src\n        └── lib.rs\n```\n\n## Video Tutorial\n\nFor a walk-through of how to build with this template, check out this [excerpt\nfrom our workshop at ZK HACK III][zkhack-iii].\n\n## Questions, Feedback, and Collaborations\n\nWe'd love to hear from you on [Discord][discord] or [Twitter][twitter].\n\n[bonsai access]: https://bonsai.xyz/apply\n\n[cargo-risczero]: https://docs.rs/cargo-risczero\n\n[crates]: https://github.com/risc0/risc0/blob/main/README.md#rust-binaries\n\n[dev-docs]: https://dev.risczero.com\n\n[dev-mode]: https://dev.risczero.com/api/generating-proofs/dev-mode\n\n[discord]: https://discord.gg/risczero\n\n[docs.rs]: https://docs.rs/releases/search?query=risc0\n\n[examples]: https://github.com/risc0/risc0/tree/main/examples\n\n[risc0-build]: https://docs.rs/risc0-build\n\n[risc0-repo]: https://www.github.com/risc0/risc0\n\n[risc0-zkvm]: https://docs.rs/risc0-zkvm\n\n[rustup]: https://rustup.rs\n\n[rust-toolchain]: rust-toolchain.toml\n\n[twitter]: https://twitter.com/risczero\n\n[zkvm-overview]: https://dev.risczero.com/zkvm\n\n[zkhack-iii]: https://www.youtube.com/watch?v=Yg_BGqj_6lg\u0026list=PLcPzhUaCxlCgig7ofeARMPwQ8vbuD6hC5\u0026index=5\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegfomenko%2Frisc0-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folegfomenko%2Frisc0-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegfomenko%2Frisc0-examples/lists"}