Local Development Setup
Clone the repository
git clone https://github.com/codeBigInt/veil-credit-scoring.git
cd veil-credit-scoring-protocolInstall dependencies
From the root of the project:
bun installThis installs dependencies for all packages in the monorepo.
Compile and build the contract
cd packages/contractRun the full Compact compilation (generates ZK circuit artifacts):
bun compileRun the contract test suite:
bun testBuild the TypeScript distribution artifacts (required by the CLI):
bun buildWhy this order matters:
- bun compile generates the managed contract files under src/managed/ that the TypeScript build and tests depend on.
- bun test validates protocol logic against the compiled circuits.
- bun build produces dist/ which the CLI imports at runtime.
Build the CLI
Navigate to the CLI package:
cd ../cliBuild the CLI:
bun buildThis compiles the CLI TypeScript code and prepares it for execution.
Last updated on