Latest

Technology

Solana debuts native SHA-512 in its signature technology

The network activates SIMD-0512 in epoch 1103: programs can now call native sha512 and verify Ed25519 signatures under 5,000 compute units.

Translated from Spanish by an automated system. The Spanish original prevails. Read the Spanish original

Source code of a program lit up on a dark screen
Photo by Unsplash

A program deployed on Solana can now compute SHA-512 without loading its own implementation. The network activated SIMD-0512 in epoch 1103, which began at 08:09:15 UTC on December 2, and with it exposed a system call that validators had been using internally for years. The Anza team's announcement came six minutes later, at 08:15, and turned a proposal written in April into a capability available on mainnet.

The change looks minor and touches one of the most sensitive pieces of any chain: signatures. SHA-512 is the hash inside Ed25519, the scheme Solana uses to authenticate every transaction. Until now, a program that needed that function had to implement it in its own bytecode and pay the cost in compute units, the measure by which the network charges for the work of each transaction.

With the native call, that cost drops to a fraction. The SIMD-0512 proposal document estimates that a hash of a short message consumes thousands of units in a software implementation and fewer than one hundred through the system call. The Agave feature activation log adds the figure that has been repeated most: verification of Ed25519 signatures inside a contract comes in under 5,000 units.

What is a syscall and why does it change the calculation?

A system call is a function that the validator executes on behalf of the program, outside the isolated environment where its bytecode runs. Solana already offered that shortcut for SHA-256, Keccak-256 and BLAKE3. SHA-512 was missing, even though the two most widely used validation clients link it as an internal dependency, according to the SIMD itself.

The practical difference is in the budget. Each transaction has a compute limit, and each operation draws it down. If a program spends thousands of units hashing, it has fewer left for the rest of its logic. By moving that work to a native function, the same program can do more within the same limit.

The design copies that of the other hash calls. The program passes one or more byte slices, up to 20,000 per call, and receives a 64-byte digest. The price in units follows the same model as SHA-256, and the proposal does not set its own number because it inherits the existing table.

From thousands of units to fewer than one hundred

The arithmetic that explains the interest in the change is simple. An implementation in BPF, Solana's bytecode format, forces every step of the algorithm to be executed inside the program. A native call replaces it with an operation the validator already has compiled and optimized, and the result is a difference of two orders of magnitude.

That margin is what makes verifying signatures inside a contract viable. Solana checked Ed25519 with a precompile, a routine built into the validator. A program could not replicate that check at a reasonable cost because it needed both the elliptic curve part and the hash part. The curve calls already existed; SIMD-0512 provides the missing piece.

The specific figure in circulation, under 5,000 units, is an Anza claim based on a prototype program, not a measurement of the network in production. It should be read with that caution because the reference material itself distinguishes between resource consumption in a controlled environment and real execution times.

The prototype figures behind the announcement

The verification program linked in the announcement measures the cost of checking signatures with different message sizes. In the battery of 32 cases, the default mode averaged 3,808.78 units per verification and strict mode came in at 3,822.16. The range by message length was 3,733 to 4,235 units.

The most useful comparison is the one that pits the prototype against an established library. With equivalent strict verification criteria, the native program consumed 3,757 units versus 4,853 for version 0.9.3 of the Brine Ed25519 library, a reduction of 22.6%. The difference does not come from the mathematics, but from not having to recompute the hash in software.

The two modes respond to different criteria. The default mode follows the rules that accept non-canonical points, while strict mode rejects them and aligns with the behavior of the most demanding libraries. For an application that validates third-party signatures, choosing one or the other is not a configuration detail.

The Ed25519 precompile and its pending retirement

Anza described the activation as a step toward retiring the Ed25519 precompile, not as its replacement. The difference matters: until there is a deployed and audited verifier program, the standard route for checking signatures on mainnet remains the precompile.

That path has engineering logic. A precompile is validator code that does not go through the normal lifecycle of a program, and retiring it requires an alternative that is at least as reliable. The prototype shows that the cost is already competitive; what remains is deployment, auditing and consensus on the replacement.

Meanwhile, the activation has immediate effects on programs that already hash in BPF. Teams using SHA-512 for logic adjacent to Ed25519 can swap their own implementation for the native one and recover compute margin without touching the rest of the contract.

What versions does a validator need and what is missing?

The feature switch reached mainnet after passing through testnet and devnet. Anza's tracking list sets the minimum versions at Agave 4.1.0-beta.0 and Firedancer 1.0, and the feature had been activated on the test network in epoch 977 and on devnet in epoch 1092. For node operators there is no pending action: if the client is up to date, the feature is already available.

The next stop on the calendar is Agave 4.5, whose features begin activating on mainnet from December 14, as recorded in the Agave calendar for December. That is where it will become clear whether teams take advantage of the native call in new programs or whether adoption is limited to those that already needed it.

For those who use applications, the change goes unnoticed. There is no wallet migration or new transaction format. The difference will show up in the form of programs that are cheaper to run, and that usually translates into new features before lower prices.

Why does it matter more than it seems?

Solana's story over the past two years is a race to make execution cheaper without breaking compatibility. Every native call that is exposed reduces the work contracts do and, with it, the cost of the operations that depend on them. SHA-512 joins that list through the door of signatures.

The medium-term impact will be measured on two fronts. The first is the verification of signatures from other chains inside Solana, a common requirement in bridges and cross-network applications. The second is privacy: schemes that encrypt amounts and proofs need cheap hashes, as the work on privacy rings with encrypted amountsshows. With less cost per hash, more room to build.

The activation also leaves a lesson about how a chain changes: through the accumulation of small pieces, each with its proposal number, its date and its switch. None seems decisive on its own. Together they explain why tokenized stocks find a place on Solana and why teams keep choosing the network to test products that two years ago did not fit in a transaction.

José Maldonado

Author

José Maldonado

Activist and blogger on technology, free software and blockchain.

The latest
Two-thirds of EU MiCA stablecoins have no activity

Keep reading