Essential zero-knowledge utility library for JavaScript developers.
npm install @openpassport/zk-kit-utils
Essential zero-knowledge utility library for JavaScript developers.
> [!NOTE]
> This library has been audited as part of the Semaphore V4 PSE audit: https://semaphore.pse.dev/Semaphore_4.0.0_Audit.pdf.
Install the @zk-kit/utils package and its peer dependencies with npm:
``bash`
npm i @zk-kit/utils
or yarn:
`bash`
yarn add @zk-kit/utils
You can also load it using a script tag using unpkg:
`html`
or JSDelivr:
`html`
`typescript
// You can import modules from the main bundle.
import { errorHandlers, typeChecks } from "@zk-kit/utils"
// Or by using conditional exports.
import { requireNumber } from "@zk-kit/utils/error-handlers"
import { isNumber } from "@zk-kit/utils/type-checks"
`
For more information on the functions provided by @zk-kit/utils`, please refer to the documentation.