Here's all you need to know to start contributing to kimchi.
- The following video goes over the project organization.
- The Mina book contains specifications, rust documentation, RFCs, and explainers on the different aspects of the system.
- The Discussion page can be used to start discussions or ask questions.
We have a list of easy task to start contributing. Start over there.
Run
git submodule init
git submodule update
to get the version of Optimism the zkVM has been developed for.
- Follow these instructions to install OCaml: https://ocaml.org/docs/install.html
- Follow these instructions to install Rust: https://rustup.rs/
Windows development can be done using Windows Subsystem for Linux (WSL).
- Install and open WSL
- Within WSL, install OCaml using your distro's package manager. For example:
apt install opam
- Within WSL, navigate to the project directory and run
cargo test
. If there are no failures then everything is set up correctly.
To run tests:
cargo test --all-features --release
Takes about 5-8 minutes on a MacBook Pro (2019, 8-Core Intel Core i9, 32GB RAM). Without --release
, more than an hour.
To scan for lints:
cargo clippy --all-features --tests --all-targets -- -D warnings
Note: cargo can automatically fix some lints. To do so, add --fix
to the above command (as the first parameter).
Finally, to check formatting:
cargo fmt
These are enforced by GitHub PR checks, so be sure to have any errors produced by the above tools fixed before pushing the code to your pull request branch. Refer to .github/workflows
for all PR checks.
Generally, proof-systems intends to be synchronized with the mina repository (see their README-branching.md), and so its branching policy is quite similar. However several important (some, temporary) distinctions exist:
compatible
:- Compatible with
rampup
inmina
. - Mina's
compatible
, similarly to mina'smaster
, does not haveproof-systems
.
- Compatible with
berkley
: future hardfork release, will be going out to berkeley.- This is where hotfixes go.
develop
: matches mina'sdevelop
, soft fork-compatibility.- Also used by
mina/o1js-main
ando1js/main
.
- Also used by
master
: future feature work development, containing breaking changes. Anything that does not need to be released alongside mina.- Note that
mina
'smaster
does not depend onproof-systems
at all.
- Note that
izmir
: next hardfork release after berkeley.- In the future:
master
/develop
will reverse roles and become something like gitflow.- After Berkeley release
compatible
will become properly synced withmina/compatible
.
- Direction of merge:
- Back-merging:
compatible
intoberkeley
intodevelop
intomaster
. - Front-merging (introducing new features): other direction, but where you start depends on where the feature belongs.
- Back-merging: