https://github.com/chancehudson/rstark
https://github.com/chancehudson/rstark
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chancehudson/rstark
- Owner: chancehudson
- Created: 2023-08-11T05:06:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T01:59:46.000Z (over 2 years ago)
- Last Synced: 2025-06-23T18:51:14.273Z (about 1 year ago)
- Language: Rust
- Size: 148 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rstark [](https://app.circleci.com/pipelines/github/vimwitch/rstark)
WIP: ZK-STARK prover written in rust.
## Building wasm
First install [`wasm-pack`](https://rustwasm.github.io/wasm-pack/installer/), then run `wasm-pack build` in the project root. A wasm file with some supporting JS will be generated in `pkg/`.
## Profiling
Install the flamegraph crate globally using `cargo flamegraph install`. Ensure that either `perf` or `dtrace` is present in your `PATH`.
To generate a flamegraph SVG:
```
cargo flamegraph --example squares
```
If you're on Mac add the `--root` flag to the above command.
Open the SVG file in a browser to interact with the stack elements.
## Browser support
See [here](https://rstark.net) and [here](https://github.com/vimwitch/benchstark) for a React based project that uses the wasm built in this repo.