1.3.0-alpha.1 • Published 3 years ago
@dingomacaroni/zokrates.js v1.3.0-alpha.1
zokrates.js
This is a Node.js wrapper around ZoKrates. Originally developed at @eyblockchain/zokrates.js.
Quickstart
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.6.3 as builder
In the same Dockerfile, you then need to copy over the ZoKrates executable as well.
COPY --from=builder /home/zokrates/.zokrates/bin/zokrates /app/zokrates
COPY --from=builder /home/zokrates/.zokrates/stdlib /app/stdlib
From then, you can import and use zokrates.js as any other standard Node.js library.
const zokratesjs = require('zokrates.js');