II. The Mechanism: Breaking the Link

How Voidify Works

Voidify is a decentralized, non-custodial protocol built on Solana that enables private transactions through advanced cryptography. It allows users to deposit assets into privacy pools and later withdraw them to a different address without revealing any on-chain link between the two. At the heart of Voidify’s privacy system are zero-knowledge proofs and zk-friendly hash functions optimized for Solana’s architecture.


🔄 Anonymity Pools

Voidify pools act as mixers for fixed-denomination tokens such as SOL assets. Users deposit assets into a shared pool, and after a delay (to ensure privacy), withdraw them to another wallet.

  • Deposit: User deposits a fixed token amount into a privacy pool.

  • Withdrawal: After generating a zero-knowledge proof, the user withdraws to a different address.

This process breaks the visible on-chain connection between deposit and withdrawal, ensuring anonymity.


🧾 How Deposits Work

When a user deposits tokens into Voidify:

  1. A private note is generated — this includes two random values: a secret and a nullifier.

  2. These are combined and hashed using the Poseidon hash function to create a commitment.

  3. The commitment is added as a leaf to an on-chain Merkle tree that tracks all valid deposits.

  4. The user retains their private note securely, as it will be required for future withdrawal.


💸 How Withdrawals Work

To withdraw anonymously:

  1. The user constructs a zero-knowledge proof that they know a valid commitment within the Merkle tree.

  2. A nullifier hash is revealed and submitted to ensure the deposit is not withdrawn more than once.

  3. The smart contract verifies the proof and nullifier.

  4. If valid, the contract releases funds to the specified recipient address.

Because the proof does not disclose the exact position of the deposit in the Merkle tree, and the nullifier cannot be linked back to the commitment, the source of funds remains private.


🔒 Zero-Knowledge Proofs (zk-Proofs)

Voidify uses zk-SNARKs—succinct, non-interactive proofs that allow verification without revealing any sensitive information.

  • Privacy: Proves ownership of a deposit without revealing which one.

  • Security: Prevents double-spending through nullifier tracking.

  • Efficiency: Proof generation is done off-chain; verification is done on-chain in milliseconds.


⚙️ Poseidon Hash: Optimized for zk-Proofs on Solana

Voidify uses the Poseidon hash instead of older hash functions like Pedersen. This switch dramatically improves performance on Solana:

Feature
Pedersen Hash
Poseidon Hash

zk-Proof Efficiency

High constraint cost

Minimal constraints

Compatibility

EVM-optimized

zk-circuit optimized

Cost & Latency

Expensive

Fast & cheap

Suitability for Solana

Poor

Excellent

Why Poseidon Hash Matters:

  • Reduced Computation: Less overhead for proof generation and verification.

  • 🚀 Performance Boost: Aligns with Solana’s design for speed and low latency.

  • 💰 Lower Cost: Fewer operations = cheaper contract execution.

  • 🔒 Strong Security: Cryptographically secure with zk-friendly structure.


🧠 Privacy Tips

To maximize your anonymity:

  • Use relayers to hide your wallet address during withdrawals.

  • Wait for additional deposits before withdrawing to increase the anonymity set.

  • Never reuse notes or expose your secret values.


Summary

Voidify allows you to transact privately on Solana by combining:

  • Zero-knowledge cryptography (zk-SNARKs)

  • Efficient hashing (Poseidon)

  • Fast, low-cost smart contracts

  • A fully non-custodial architecture

With Voidify, privacy is no longer a compromise. You stay in control—securely, efficiently, and anonymously.

Last updated