Solana Activates SIMD-0512, Cutting Hashing Workload for Apps

Solana has activated an upgrade that reduces the computing resources applications need for SHA-512 hashing, a key step in checking digital signatures. Anza, the team behind the Agave validator client, announced on X on Dec. 2 that SIMD-0512 is live on mainnet as of epoch 1103.

The upgrade gives programs a built-in function called sol_sha512, which works like the existing sol_sha256 call but returns a 64-byte result. Until now, a program that needed SHA-512 had to carry its own hand-written version.

How SIMD-0512 Cuts Hashing Work

Solana measures the work a program does in compute units (CUs), and each transaction has a limited budget of them. Dean Little of Blueshift, who wrote the proposal behind the upgrade, estimates that hashing a short message that way costs thousands of CUs, against fewer than 100 through the built-in call.

The function was already available inside the network’s software. SHA-512 was part of both the Agave and Firedancer validator clients as an internal component, but it wasn’t exposed to on-chain programs. The new call opens it up, with costs set by the same model as Solana’s existing SHA-256 call.

Apps Can Replace Costly Hashing Code

The upgrade doesn’t rewrite anything by itself. Developers have to update their programs to call the new function. Programs that don’t use it are unaffected, and Solana’s existing hashing calls work as before.

Because the new call takes the same inputs as sol_sha256, developers who already use that function will find it familiar. A program that carried its own SHA-512 code can drop it in favor of the built-in version, which frees up part of its CU budget for other work.

What Cheaper Signature Checks Enable

SHA-512 is a core building block of Ed25519, a widely used digital-signature scheme, so cheaper hashing makes checking those signatures inside a program less costly.

A published prototype from the solana-program GitHub organization shows how. It combines the new hashing call with Solana’s curve operations to verify signatures, and other programs can call it. In its tests, it averaged about 3,800 CUs per verification. The project’s figures come from a test setup rather than mainnet transactions.

Any savings apply only to programs that adopt the new call.

Source: SIMD-0512 proposal

Leave a Reply

Your email address will not be published. Required fields are marked *

UP NEXT

Related Tags

Loading RSS Feed

You May Like

Subscribe To Our Newsletter

Metus in ac vivamus dui id purus in risus. Nunc fringilla donec amet pulvinar vivamus suscipit. Augue porttitor eu sed proin tortor bibendum facilisis felis. Nunc egestas tellus nisl tempor aliquet malesuada ali eu sed proin tortor bibendum facilisis felis
Stay Updated by our Monthly / Weekly News Update. Zero Spamming. Terms & Condition Applied