Skip to main content

keccak256

Function keccak256 

Source
pub fn keccak256(inputs: &[&[u8]]) -> Result<Keccak256Hash, ProgramError>
Expand description

Compute Keccak-256 over one or more byte slices.

Same multi-part API as sha256. Keccak-256 is the hash function used by Ethereum’s keccak256() and by Solana’s secp256k1 precompile.