Coin Brief ENDE

SIMD-0579 proposes a raw Keccak permutation syscall for Solana at 70 or 130 compute units

Solana's improvement documents repository merged SIMD-0579 on 27 November, a proposal to give on-chain programs direct access to the Keccak permutation. Its authors are listed as David Rubin of Jump and two contributors identified as SK and ZZ; the document was created on 8 July and its status is Idea, so no feature key has been assigned yet.

The syscall, sol_keccak_p1600, takes a pointer to a 1600-bit state, 200 bytes laid out as 25 little-endian 64-bit words, and applies Keccak-p[1600] to it in place. The caller chooses between 24 rounds and 12. The proposal began with the wish to use SHAKE-256 in programs and widened to newer constructions with fewer rounds: RFC 9861 defines TurboSHAKE128, TurboSHAKE256, KT128 and KT256 on the 12-round permutation, and the authors say the Keccak team is confident that halving the round count does not weaken the core permutation.

Exposing the permutation rather than a finished hash is the central design choice. Many protocols use their own framing and domain separation; Merlin is named as one that uses different bit flags and separators. A dedicated sol_shake256 syscall was considered and rejected because it would prevent other protocols from reusing the underlying permutation. The existing sol_keccak256 syscall is unchanged.

SIMD-0579 proposes a raw Keccak permutation syscall for Solana at 70 or 130 compute units
SIMD-0579 proposes a raw Keccak permutation syscall for Solana at 70 or 130 compute units — Coin Brief

The pricing is derived from measurement. The base cost is 10 compute units and each round costs 5, so 24 rounds cost 130 units and 12 rounds cost 70. The authors timed one 24-round permutation at 132.85 nanoseconds and a keccak over 135 bytes at 159.37 nanoseconds, a call currently charged 152 units, and scaled accordingly to about 127, rounded to 130. A standard BPF implementation of the same work costs around 6,000 units for 12 rounds and 12,000 for 24, which the document describes as roughly two orders of magnitude more.

Validation is strictly ordered. An implementation must first check that the round count is 12 or 24, then deduct the cost, then check that the state is 8-byte aligned, then translate the 200 bytes as writable memory, and only then apply the permutation. Any failure aborts the virtual machine rather than returning an error to the program. Conformance tests are to cover known-answer vectors, which will be supplied with the final accepted proposal, plus rejection of other round counts, misaligned or invalid addresses, and insufficient compute budget.

The security note is short and puts the burden where it belongs: because the syscall exposes the raw permutation, a caller must implement correctly the domain separation and tagging that its chosen construction requires. The change is additive and gated behind a feature flag, so programs that never call it are unaffected.