@baerae/zkap-zkp-node
v0.1.7
Published
Node.js native bindings for zkap-zkp (napi-rs)
Downloads
696
Readme
@baerae/zkap-zkp-node
Native Node.js bindings for zkap-zkp.
Install:
npm install @baerae/zkap-zkp-nodeimport { generateHash, loadRelease, prove } from '@baerae/zkap-zkp-node'
const hash = generateHash(['0x1', '0x2'])
const release = loadRelease({ releaseDir: '/path/to/flat-release', shape: '3-of-3' })
const proof = prove(config, { manifestDir: release.stagedDir, ...request })This direct runtime package exposes the synchronous napi-rs API and installs
only the current platform's optional native binary package. Use
@baerae/zkap-zkp with this package when you need the Promise-based
compatibility facade and helpers such as downloadRelease().
