@zk-email/sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.85-4 • Public • Published

zk-email-sdk-js

With the ZK Email SDK you can easily compile zk regex circuits and directly create proofs with them.

Test a decomposed regex locally

Currently only works with bun. Install Bun:

brew install oven-sh/bun/bun.

Install dependencies:

bun i

Run example:

bun example.ts

Note

This first version of this SDK does not support compiling the circuits and running the proofs without our infra, but it is our priority to make this work with your own ifra easily, too.

Setup

This project uses bun. So to install packages use bun i.

Run integration tests

Before you can run the tests, you must have the conductor running.

Then you can run bun test.

Directly start downloads

To run the start download test, you first have to compile the TypeScript files to js with bun run build.

If you have python installed run python -m http.server 8000. Then you can go to http://localhost:8000/integration_tests/start_downlaod_in_browser.html and click the download button.

Readme

Keywords

Package Sidebar

Install

npm i @zk-email/sdk

Weekly Downloads

690

Version

0.0.85-4

License

MIT

Unpacked Size

254 kB

Total Files

8

Last publish

Collaborators

  • sora_suegami
  • johnguilding
  • metachaser
  • jp4g
  • dimidumo
  • shreyas-londhe
  • shinanonozenji
  • bisht13
  • atheartengineer
  • saleel
  • yushg
  • wryonik
  • zkfriendly
  • javiersuweijie