Update 4 MonteZecret: How We Made Zcash 800x Faster and Why Dash Is Still Quicker
"To catch a criminal, you need to pretend to be a criminal and think like a criminal.
To become a Zcash developer, you need to pretend to be a Zcash developer and think like a Zcash developer."
The Problem Nobody Talks About
There’s one serious UX problem with Zcash. A really serious one.
Imagine this: a regular user downloads Unstoppable Wallet, enables Zcash and Dash cryptocurrencies, hits the “Sync” button, and… waits.
Dash loads in seconds. Zcash crawls like a snail on sedatives.
Regular users don’t think about technology. They don’t know what Zero-Knowledge Proofs, Sapling, Orchard, or SPV are. They see only one thing: one cryptocurrency is faster than another.
And this is a serious problem for Zcash.
Because in the world of cryptocurrency, speed = trust. If your wallet is slow, the user thinks: “Maybe the coin itself is sluggish?”
We solved this problem. And here’s what we came up with.
Why Is Dash Faster? (Spoiler: It’s Not Fair)
At first glance, it might seem impossible to fix.
Dash uses SPV (Simplified Payment Verification) technology. The wallet asks the node: “Give me only those block headers that contain my address”. And gets them in seconds.
Zcash can’t do that. The wallet needs to download all blocks and check them itself using an IVK (Incoming Viewing Key) to see if there are transactions for our address.
It’s like the difference between:
- Dash: “Bring me only the pages I need from the book”
- Zcash: “Bring me the whole book, I’ll find the pages I need myself”
Sounds like a death sentence, right?
But as it turned out, a combination of modern technologies can solve this problem.
To do this, we had to conduct a whole study—a series of benchmarks (performance measurements) that, as far as we know, no one had ever conducted before.
And we decided to share this study on GitHub—as a treasure map for all new Zcash wallet developers.
Using this data, you’ll be able to find the best way to write the fastest wallet for Zcash.
Have You Ever Wondered Why Thin Smartphones Are So Expensive?
Fitting a huge number of boards, microchips, and other equipment into a thin case is a true miracle of engineering.
But it’s a very expensive pleasure.
Although people who buy such devices know how to appreciate quality and human ingenuity. That’s why demand for such devices exists only among premium customers.
That’s exactly what we want to create—the lightest and fastest wallet for Zcash—MonteZecret.
Written in Rust instead of C++. Because Rust is like a thin smartphone: hard to create, but the result is worth it.
So let’s see what we came up with and what technologies need to be used in a modern Zcash wallet for working with the blockchain.
Optimization 1: Batch Size (Group Requests)
The Idea
The biggest speed boost comes from using group request and block range retrieval technology.
This is very convenient for both the server and the wallet.
Instead of asking:
- “Give me block 1001000”
- “Give me block 1001001”
- “Give me block 1001002”
- … (1000 times)
We say:
- “Give me blocks from 1001000 to 1002000”
And get data for 1000 blocks at once in a single request.
Results
This gives a speed increase from:
- 7 blocks per second with sequential loading of 1 block at a time (Test 2: Zcash Sequential and Test 4: Zcash Reverse)
- to 3096 blk/sec with Batch Size 5000 (Test 3.1)
- or to 3277 blk/sec with Batch Size 10000 (Test 3.1)
The speed increase is:
((3096 + 3277) / 2 - 7) / 7 × 100% = +45,421%
Forty-five thousand percent. That’s not a typo.
What’s the Best Batch Size?
The direct answer: it’s best to use a dynamic batch size—large for fast nodes, small for slow nodes.
But if you need specific numbers, our tests provide those too.
First, the maximum batch size for Dash wallet is 2016 blocks. Accordingly, a modern Zcash wallet’s batch size should not be less than 2000 blocks.
Second, in the results of a series of block loading tests with different batch sizes, you’ll find the following data:
Batch Size: 10000
blk/sec: 7071
Increase vs previous: +60%
Increase vs 500: +657%
Batch Size: 20000
blk/sec: 10277
Increase vs previous: +45%
Increase vs 500: +1000%
Batch Size: 50000
blk/sec: 11641
Increase vs previous: +13% 🔴
Increase vs 500: +1147%
That is, the speed increase when changing Batch size from 10000 to 20000 is +45%, while the speed increase when changing Batch size from 20000 to 50000 is only +13%.
The efficiency of increasing batch size drops significantly.
Our Recommendation
The optimal batch size is from 2000 to 20000 blocks.
On slow servers, you can even use batch size = 1000 if you apply dynamic batch size technology.
Optimization 2: Zero-Copy (Zero Copies)
The Idea
The winning test is Zero-Copy (Test 7).
Average speed: 3748 blk/sec
It wins because it doesn’t use the unnecessary functionality of SQLite and other relational databases.
Relational databases aren’t needed for storing blockchain blocks because we have no relationships with other tables—this functionality is simply unnecessary.
It’s better to use non-relational databases (or just store in memory) for storing Zcash blockchain blocks.
Results
The speed increase is:
(3748 - 7) / 7 × 100% = +53,442%
or
(53442 - 45421) / 45421 × 100% = +17.66%
compared to batch optimization.
This seems small, but the cumulative effect from combining such optimizations can be enormous.
Zero-Copy Is the Absolute Leader
Place: 1
Test: Zero-Copy
Wins: 6 out of 11 runs
Percentage: 55%
Why is Zero-Copy so fast?
- Skips Protobuf deserialization (stores raw bytes)
- Uses
Arc<[u8]>for zero-copy conversion - Parallel processing via rayon
- Shared memory without data copying
Optimization 3: True Reverse Batch (Spend Before Sync)
The Idea
This optimization won’t increase speed—on the contrary, it will slightly decrease it.
But it’s very important for user experience.
True Reverse Batch (Test 4.2)
Average speed: 2243 blk/sec
The thing is, the latest blocks are more relevant for an active crypto wallet.
Loading them allows the user to spend received Zcash even before all other blocks are loaded.
This is Spend before Sync technology.
Comparison with Competitors
The YWallet wallet doesn’t have reverse blockchain loading.
So, by implementing this functionality, we’ll be better than YWallet.
By the way, we recently switched from YWallet to the ZKool2 wallet. But even ZKool2 doesn’t use this technology.
Why Is This Important?
Imagine: you received Zcash for work. You need to buy coffee urgently.
Without True Reverse Batch:
- Wait 15 minutes for the entire blockchain to load
- Only then can you spend Zcash
With True Reverse Batch:
- The latest blocks load in seconds
- You see your balance immediately
- You spend Zcash right away
- The remaining blocks load in the background
This is a huge difference in UX.
Optimization 4: Work-Stealing (Parallel Loading)
The Idea
Loading data in parallel from different nodes.
Work-Stealing (Test 6)
Average speed: 738 blk/sec
Multi-Node (Test 5)
Average speed: 575 blk/sec
At the same time, if we—like in BitTorrent technology—distribute more work to fast nodes, taking work from slow nodes, this gives a performance boost:
(738 - 575) / 575 × 100% = +28%
Bonus: Reliability
And this also increases the reliability of the Zcash wallet.
If one node goes down, others continue working. Like in a distributed system.
Optimization 5: Dynamic Node List
The Idea
If we read active nodes on request from another node, we get a more complete list of 26 active nodes.
This is more than the 15 nodes initially hardcoded in the config.toml file, and gives a noticeable speed boost.
Results
Work-Stealing (15 nodes): 452 blk/sec
Work-Stealing (26 nodes): 976 blk/sec
Improvement: +116%
One hundred sixteen percent. Almost doubling the speed.
Just because we load an up-to-date list of nodes from the network instead of using a hardcoded list.
Optimization 6: zImport (Instant Import)
The Problem
When you’ve fully loaded the wallet, you know which blocks contain your transactions.
It’s all the more sad when, when importing a wallet via seed-phrase, you lose this data and have to redo the work to gather this information.
Our Solution
In our opinion, the best solution is a technology we called zImport.
In the import file [wallet_name].zimport, we write not only the seed-phrase, but also an array of block numbers containing the user’s transactions.
Encryption
The file itself is encrypted just like wallet.key, with the master password:
[array of block numbers] + master password
→ bincode::serialize()
→ Blake2b512(salt + master password)
→ PBKDF2-HMAC-Blake2b512(25,000 iterations)
→ AES-256-GCM(key, nonce, data)
→ [wallet_name].zimport
After import, we scan blocks only from last_synced_height to the current one.
Result
With this format, we can synchronize the wallet almost instantly.
Maybe someone has already done this before us, but then we reinvented it.
Final Performance Table
Ranking by Number of Wins
Place 1: Zero-Copy — 55% wins
Place 2: Batch Size 10000 — 27% wins
Place 3: Batch Size 5000 — 18% wins
Top 3 Strategies
🥇 Zero-Copy: 3748 blk/sec (average)
🥈 Batch Size 10000: 3277 blk/sec
🥉 Batch Size 5000: 3096 blk/sec
Sync Time Forecast
For the full Zcash blockchain (3.4M blocks):
Sequential: 6.3 days ❌ Unacceptable
Reverse Single: 6.9 days ❌ Unacceptable
Dash SPV (Blockchair): 8.7 hours ⚠️ Long
Multi-Node (15 nodes): 2.5 hours ⚠️ Acceptable
Work-Stealing (15 nodes):2.1 hours ⚠️ Acceptable
Multi-Node (26 nodes): 1.3 hours ✅ Good
Work-Stealing (26 nodes):58 min ✅ Good
Dash SPV ElectrumX: 36 min ✅ Excellent
Batch Size 5000: 18 min ✅ Excellent
Batch Size 10000: 17 min ✅ Excellent
Zero-Copy: 15 min ✅ BEST RESULT
Bonus: Treasure Map for Developers
We’ve published all our benchmarks on GitHub:
https://github.com/openkoder/benchmarks_zcash/
There you’ll find:
Full benchmark code in Rust
Results from 11 runs
Charts and visualizations
Recommendations for optimal parameters
Implementation examples for each optimization
Use this data as a treasure map for creating the fastest Zcash wallet.
Conclusion
We’ve proven that Zcash can be just as fast as Dash.
To do this, you need to use a combination of optimizations:
- Batch Size from 2000 to 20000 blocks (+45,421%)
- Zero-Copy without relational databases (+53,442%)
- True Reverse Batch for Spend before Sync
- Work-Stealing for parallel loading (+28%)
- Dynamic node list (+116%)
- zImport for instant import
Together, these optimizations give an 800x speed increase compared to naive sequential loading.
Zcash no longer has to be a snail.
Now it’s up to wallet developers. You have the treasure map. Use it.
Acknowledgments
Thanks to the Zcash Community for support and inspiration.
Thanks to Rust for existing.
Additional Resources
If you liked this article, give it a
and share it with your Zcash developer friends.
Let’s make Zcash faster together! ![]()
We’re Still Looking for Sponsors
We’re still seeking sponsors for our project — the lightest and now, quite possibly, the fastest crypto wallet for Zcash. Because, you know, rent doesn’t pay itself.
Jokes aside, developing a high-performance wallet in Rust requires time, coffee, and electricity. If you believe in our mission to make Zcash faster and more user-friendly, your support would mean the world to us.
Every contribution, no matter how small, helps us continue this work and bring a better Zcash experience to the community.
To support development, leave a message for eternity (in the encrypted Memo field):
u1c9qqs5knwe360w6snjuhcldtpf6tcc9nz6xuanmz2xwyf7l4ufze89tze43yz90ajgcej5ylh0a4h2ac65flsvp7a8ewaauvtt4hwsxuhuqvv9h5fkxntw9yk0eyrrlcu004e2havqs0yx58u7kk75e8hff47srsaslc9g6u6rxfn7j9es2g6zc0drd6ajus8wjj2f8p3als53dfc9l
