SDK
Utilities for building commitments, creating proofs, and interacting with the relayer.
Install
npm i @synzk/sdk
Usage
import { createProof, submit } from '@synzk/sdk'; const { proof, commitment } = await createProof({ from: '0x...', to: '0x...', asset: 'USDC', amount: '100' }); await submit({ proof, commitment, relayerUrl: process.env.SYNZK_RELAYER_URL });
API
Function | Description |
---|---|
createProof(input) | Build witness & proof |
verifyLocal(proof) | Client‑side verification |
submit(opts) | Send to relayer |