feat: Add ere-zisk with only compile and execute utility. (#27)

* feat: add `ere-zisk` and `compile` functionality

* fix: use `FixintEncoding` for `Input::as_bytes` to make it deterministic

* feat: implement `zkVM::execute`

* fix: make `install_zisk_sdk.sh` work with docker

* chore: add comment why use `#[should_panic]`

* feat: use command `cargo-zisk ...` for `compile`, `execute`, `prove` and `verify`

* ci

* fix: invalid proof
This commit is contained in:
Han
2025-05-28 15:49:04 +01:00
committed by GitHub
parent d106f8d65c
commit 5b5a012e26
16 changed files with 777 additions and 68 deletions

View File

@@ -40,13 +40,13 @@ RUN chmod +x /tmp/install_zisk_sdk.sh
RUN /tmp/install_zisk_sdk.sh && rm /tmp/install_zisk_sdk.sh # Clean up the script
# The 'zisk' Rust toolchain is now installed.
# cargo-zisk is installed in $HOME/.zisk/bin.
# The install_zisk_sdk.sh script adds $HOME/.zisk/bin to PATH for its session.
# For the image environment, we need to ensure $HOME/.zisk/bin is persistently in PATH.
ENV ZISK_TOOLS_BIN_DIR="${HOME}/.zisk/bin"
ENV PATH="${ZISK_TOOLS_BIN_DIR}:${PATH}"
# cargo-zisk is installed in /root/.zisk/bin.
# The ziskup script adds /root/.zisk/bin to PATH for its session.
# For the image environment, we need to ensure /root/.zisk/bin is persistently in PATH.
ENV ZISK_BIN_DIR="/root/.zisk/bin"
ENV PATH="${PATH}:${ZISK_BIN_DIR}"
# Verify cargo-zisk is accessible
RUN echo "Verifying Zisk installation in Dockerfile ..." && cargo +zisk zisk --version
RUN echo "Verifying Zisk installation in Dockerfile ..." && cargo-zisk --version
CMD ["/bin/bash"]