Skip to content

argumentcomputer/zisk.nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zisk.nix

Provides a Nix dev shell and Docker shell image for generating Zisk proofs of Rust programs

Prerequisites

8+ CPU cores and 64+ GB RAM

Usage

Nix dev shell

  • Make sure Nix is installed with flakes support
  • Run the dev shell with nix develop or direnv, optionally with Garnix cache
  • Check you have cargo, cargo-zisk, and ziskemu available, and that $ZISK_DIR is set to ~/.zisk
  • Run the commands from https://0xpolygonhermez.github.io/zisk/getting_started/quickstart.html
    • Total proving time is about 5 minutes for the sha_hasher example on my machine, YMMV

Docker

Alternatively, the provided Ubuntu Docker container can be used:

  • Build with nix run .#build-image. This will take a few minutes to install ziskup and download the proving key
  • Run the container shell with nix run .#zisk-shell
  • Build and run per the dev shell instructions
  • Exit the container with exit

Troubleshooting

Notes

  • Pure Nix builds are not currently supported, only the dev shell with cargo/cargo-zisk CLI
  • For best performance use the Docker container, especially when compiling Zisk from source for GPU proving

TODOs

About

(WIP) Nix dev shell for https://github.com/0xPolygonHermez/zisk/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors