← All insights
RELEASEZakura

Zakura Common cryptography library

An accelerated fork of the Zcash cryptography libraries was released. Mobile proof generation became more than 14x faster and Sinsemilla hashing more than 21x faster, the team said.

The Zakura team released Zakura Common, a collection of cryptography and protocol libraries for the Zcash ecosystem. It was developed to speed up the Zakura full node and improve wallet performance for ordinary users, and the team describes the optimizations as one of the largest improvements in Zcash history.

Results on benchmark hardware are as follows. Mobile proof generation is more than 14x faster and desktop more than 5x faster, Sinsemilla hashing more than 21x faster, trial decryption more than 1.5x faster, and zk-SNARK verification 4-8x faster. Today users wait more than 3 seconds for a wallet to build a transaction, but with the new libraries this drops to under 200ms in many cases, a level that is barely noticeable.

The improvements are not one big optimization but the accumulation of incremental gains in each component. Some are well-known cryptography and compiler techniques, while others are new ideas devised for Zcash, and the team explains that, because of Amdahl's law, where optimizing one part makes another serial step the bottleneck, a lot of effort went into reducing the constant factors of parts thought to be asymptotically efficient.

None of the improvements needs a network upgrade, and everything is available now under a dual MIT/Apache 2.0 license. The root is the zakura-core/common monorepo containing modified forks of librustzcash and several crates, while wallet crates live in a separate zakura-core/wallet-libraries, which will also hold PIR work in the long term. The upcoming Zakura 1.3.0 release and Tachyon have already switched to this stack, and the team encourages wallets to switch.

This summary is based on the original; check the original for exact details.