@smithii_io/mixoor
v0.0.18
Published
JavaScript client for the Mixoor program
Downloads
2,350
Readme
JavaScript client
A generated JavaScript library for the Mixoor program.
Getting started
To build and test your JavaScript client from the root of the repository, you may use the following command.
pnpm clients:js:testThis will start a new local validator, if one is not already running, and run the tests for your JavaScript client.
Available client scripts.
Alternatively, you can go into the client directory and run the tests directly.
# Build your programs and start the validator.
pnpm programs:build
pnpm validator:restart
# Go into the client directory and run the tests.
cd clients/js
pnpm install
pnpm build
pnpm testYou may also use the following scripts to lint and/or format your JavaScript client.
pnpm lint
pnpm lint:fix
pnpm format
pnpm format:fixDevelopment
Circuit Files
This package includes zero-knowledge proof circuit files required for generating privacy-preserving transaction proofs. These files are bundled with the package during publishing.
If you're developing locally and need to update the circuit files:
# After building circuits in the main circuits directory
pnpm copy-circuitsThe circuit files are located in:
circuits/build/transaction_js/transaction.wasm- WASM circuitcircuits/transaction_0001.zkey- ZKey filecircuits/verification_key.json- Verification key
These paths are resolved at runtime relative to the package root, ensuring the library works both during development and when installed as an npm dependency.
