Installation
A self-contained step-by-step tutorial of Keelung
Last updated
A self-contained step-by-step tutorial of Keelung
Last updated
In this tutorial, we'll show you how to set up the environment and write programs in Keelung.
If you are having trouble when installing the following tools, please see Troubleshooting.
The only Haskell tool you need for Keelung is Stack, which will install and build the required Haskell compiler for you when building Keelung programs.
.
For better development experience, it would be handy to have an Integrated Development Environment (IDE) or an editor with proper extensions installed.
For an out-of-the-box experience, we recommend the editor with the extension.
For other editors, we recommend installing .
We provide 3 ways of installing the compiler
Git clone or download the compiler's , enter the repository's directory and build the source.
It may take some time for the first time. After completed, the built binary keelungc
should be available on your machine.
Run the commands below to see if you have stack
and keelungc
installed on your machine.
You should see version numbers displayed in the terminal or command prompt. If not, you may need to check your installation or add the executable to your system's PATH environment variable.
or if you're using the Docker image
To start coding with Keelung, please continue with either one of the sections below:
We've encountered some difficulties with the Docker images of the prover and verifier, a a new fixed version should be coming soon!
See Building a zkSNARK Application with Keelung: Merkle tree membership for an example of their usage. If you don't have the binaries installed but have Docker, the Keelung library should automatically detect that and run the Docker images.
If you are feeling adventurous, we also have native binaries built for major platforms available on . You can download the binary of the compiler for your platform and put it in a directory listed in your PATH environment variable.
You may encounter security warning like this on macOS. To solve this, go to System Settings -> Privacy & Security and click Allow Anyway
Another way to get the compiler is through :
If you are experiencing a long Docker image startup time (5~10 seconds), you may want to consider downloading instead.
Aurora prover ():
Aurora verifier ():
Currently only x86_64 Linux is supported, you can download it from the .