/zokrates.js

This is a Node.js wrapper around ZoKrates.

Primary LanguageSolidityOtherNOASSERTION

zokrates-api

This is a Node.js wrapper around ZoKrates.

Instructions

This library is meant to be used through Docker containers running a Linux OS. In the Dockerfile that will be running this library, you need to include the ZoKrates library as a builder, as such:

  FROM zokrates/zokrates:0.4.11 as builder

In the same Dockerfile, you then need to copy over the ZoKrates executable as well.

  COPY --from=builder /home/zokrates/zokrates /app/zokrates
  COPY --from=builder /home/zokrates/.zokrates* /app/stdlib

From then, you can import and use ZoKrates as any other standard Node library.