1.2.0 • Published 5 years ago

@eyblockchain/zokrates.js v1.2.0

Weekly downloads
6
License
PUBLIC DOMAIN
Repository
github
Last release
5 years ago

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.