SolVoid Privacy SDK - Zero-knowledge privacy for Solana
npm install solvoidThe official integration layer for the SolVoid Privacy Protocol. This SDK provides a comprehensive software interface for decentralized applications requiring Zero-Knowledge (ZK) transaction anonymity, identity obfuscation, and privacy auditing on Solana.




---
While this package provides the SDK, SolVoid is a multi-layered privacy infrastructure. To access the full ecosystemโincluding the ZK circuits, Shadow Relayer, Atomic Rescue CLI, and Web Dashboardโrefer to the primary repository:
๐ github.com/brainless3178/SolVoid
---
SolVoid orchestrates a multi-layered privacy lifecycle (PLM) that decouples on-chain identities from their transaction history while maintaining full protocol verifiability.
> Note: The diagram above is provided as a static image so it renders consistently on npm and other markdown renderers that do not support Mermaid.
---
withdraw.circom: Orchestrates nullifier verification, Merkle membership checks, and public signal binding.rescue.circom: A specialized emergency circuit for the Atomic Rescue Engine, enabling private migration of assets from compromised identities.---
``bash`
npm install solvoid
---
typescript
import { SolVoidClient } from 'solvoid';const config = {
rpcUrl: 'https://api.mainnet-beta.solana.com',
programId: 'Fg6PaFpoGXkYsidMpSsu3SWJYEHp7rQU9YSTFNDQ4F5i',
relayerUrl: 'https://relayer.solvoid.network'
};
const client = new SolVoidClient(config, walletAdapter);
`$3
`typescript
const amountLamports = 1_000_000_000; // 1.0 SOL
const { commitmentData, status } = await client.shield(amountLamports);console.log('Secret/Nullifier Primitives:', commitmentData.secret, commitmentData.nullifier);
`$3
`typescript
const result = await client.prepareWithdrawal(
secret,
nullifier,
amountLamports,
recipientPubkey,
commitmentsBuffer, // Hex-encoded commitment set
wasmPath,
zkeyPath
);// Submit via Shadow Relayer for gasless execution
const txid = await client.submitWithdrawal(result);
`$3
`typescript
const passport = await client.getPassport(address);
console.log(Current Ghost Score: ${passport.overallScore}/100);
passport.recommendations.forEach(rec => console.log(Audit Note: ${rec}));
`---
๐ Security & Performance
- Sub-second Latency: Optimized for Solana's 400ms block times.
- Browser-Side Proving: Execute Groth16 witness generation directly in the client environment via snarkjs.
- Data Integrity Enforcement (DIE): Zod-powered schema validation at every operational boundary (CLI, API, SDK).---
๐ Project Orchestration (CLI & Operations)
While this package focus on the SDK, the following tools are available in the main repository:
$3
`bash
solvoid shield # Surgical Shielding
solvoid withdraw # Unlinkable Withdrawal
solvoid ghost # Privacy Audit
solvoid rescue # Atomic Remediation
solvoid admin pause/resume # Emergency Controls
``---
Distributed under the MIT License. SolVoid is an engineering-first initiative focused on digital sovereignty.
---
For the complete protocol documentation, circuits, and CLI, visit the Main Repository.