Isekai is a verifiable computation framework that will allow to work with several programming languages and verifiable computation systems while using a single code-to-circuit module. Isekai is being developed by Sikoba Research with the support of Fantom Foundation. We seek to cooperate with researchers and developers who work on verifiable computation projects, as well as with blockchain projects that want to offer verifiable computation.
To find out more, read our recent (11 Feb 19) Medium post or contact us: isekai at protonmail dot com.
Isekai is a tool which parses a C program and outputs the arithmetic and/or boolean circuit representing the expression equivalent to the input program. Isekai uses libclang to parse the C program, so most of the preprocessor (including the includes) is available. Isekai is written using crystal programming language allowing for a strong type safety and it is compiled to a native executable, ensuring maximum efficiency in parsing.
The project comes with the Makefile and in order to compile the
make will be enough. That will create
binary file in the current directory. To run tests
should be used.
crystal build src/isekai.cr or
can be used.
The project is written in Crystal language. Follow the Official instructions for instructions how to install Crystal lang.
Since the project depends on several libclang patches which are not yet merged in the libclang (https://firstname.lastname@example.org/msg95414.html, http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20140428/104048.html), the easiest is to use the provided pre-build binary and to build and run the software inside a container.
To install docker on Ubuntu, follow the official instructions
To build a docker image with the
isekai tag, enter
docker directory and run
This will build
isekai image which then you can use to spawn a container and mount
the main directory:
You may need crystal lang dependencies before running this step:
docker run --rm -w $PWD -v $PWD:$PWD -ti isekai /bin/bash
where you can run
make test and run the built binaries.
If you don't want to enter the interactive console, it's enough to run make within the container:
docker run --rm -w $PWD -v $PWD:$PWD isekai make test