Solana has activated the SIMD-0512 protocol upgrade on mainnet at epoch 1103, adding a native SHA-512 system call intended to reduce the computational cost of cryptographic work inside on-chain programs.

According to Anza, the team behind Solana’s Agave validator client, the change lets developers replace software-based SHA-512 implementations with a built-in function. That cuts the compute required for some hashing tasks and opens the way for cheaper on-chain Ed25519 signature verification.

A new native hashing function

SIMD-0512 was originally proposed on April 3 by Blueshift developer Dean Little. The upgrade introduces a system call called sol_sha512, giving applications direct access to a hashing function that is already used internally by the Agave and Firedancer validator clients.

The new function follows the same interface as Solana’s existing SHA-256 system call, but it produces a 64-byte output rather than a 32-byte digest. Before this activation, developers that needed SHA-512 had to implement it inside Solana’s BPF execution environment, which used a large share of a program’s compute budget.

Lower compute use for cryptographic operations

Little’s proposal estimated that hashing a short message in software consumed thousands of compute units, while the native SHA-512 function can handle the same task using fewer than 100. On Solana, compute units are the measure of resources consumed when instructions execute, so lower usage leaves more room for other operations inside a transaction’s limits.

Anza said the upgrade is optional and does not alter existing hashing behavior for applications that do not rely on SHA-512. In practice, that means current programs can continue operating as before, while developers that need the algorithm can opt into the new system call.

Ed25519 verification becomes cheaper on-chain

One immediate use case for the new hashing capability is Ed25519, the signature scheme Solana uses to authenticate transactions. Anza said that, when combined with existing Curve25519 system calls, on-chain Ed25519 verification can now run using fewer than 5,000 compute units.

Benchmark results from the Ed25519 repository give a more detailed view of the prototype’s resource use. In tests dated September 18, verification of signatures on 38-byte messages consumed 3,742 compute units using the default method, while 1,024-byte messages required 4,235 units.

Across 32 benchmark cases, the prototype averaged 3,808.78 compute units per verification. A stricter verification configuration averaged 3,822.16 units. In another comparison using equivalent strict criteria, the prototype used 3,757 compute units versus 4,853 for version 0.9.3 of the Brine Ed25519 library, a reported 22.6% reduction.

Potential applications and limits

Applications that verify externally signed messages may benefit most directly from the change. The source article pointed to some smart contract wallets, cross-chain bridges, and financial protocols as examples where SHA-512-based verification could become less expensive on-chain.

The same could apply to some zero-knowledge applications where the underlying verification flow specifically depends on SHA-512, although the upgrade does not improve every type of zero-knowledge proof. An experimental Ed25519 program is also designed for cross-program invocation, allowing one smart contract to ask another to verify a signature and return an explicit result.

The published measurements came from a controlled testing environment using a metered SHA-512 implementation. They describe compute consumption rather than confirmed mainnet transaction execution times.

What comes next

Anza described the implementation as a step toward eventually retiring Solana’s current Ed25519 precompile, a specialized verification component in the network runtime. For now, SIMD-0512 adds an additional native option rather than replacing established mechanisms.

Separately, Anza said it expects to begin activating Agave 4.5 features on mainnet starting December 14, marking the next confirmed milestone mentioned alongside the SIMD-0512 rollout.

Source: crypto.news