Skip to content

zokrates-zexe.js 0.4.0

Install from the command line:
Learn more about npm packages
$ npm install @eyblockchain/zokrates-zexe.js@0.4.0
Install via package.json:
"@eyblockchain/zokrates-zexe.js": "0.4.0"

About this version

zokrates-zexe.js

This is a Node.js wrapper around zokrates-zexe.

Instructions

installing the npm package

To use install package, you must be logged in to the github npm package repository. To do that you need a personal access token (it's easy to generate if you don't have one - the same token can be used for docker too). Log in like this (when you are asked for a username, paste your access token):

$ npm login --registry=https://npm.pkg.github.com

After that, you can install it with:

$ npm install --save npm install @eyblockchain/zokrates-zexe.js

or add it to your package.json file. If you push code changes, you will (for now) need to manually bump the package.json version or the npm package won't publish. We'll automate that soon

using in a docker container

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 docker.pkg.github.com/eyblockchain/zokrates-zexe/zokrates_zexe:latest 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.

Details


Assets

  • zokrates-zexe.js-0.4.0.tgz

Download activity

  • Total downloads 2
  • Last 30 days 0
  • Last week 0
  • Today 0