Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

keccak256

Computes the Solidity-compatible Keccak hash of an array of bytes.

Arguments

  • self - A Array<u8> of bytes.

Returns

A u256 value representing the Keccak hash of the input bytes array.

Fully qualified path: alexandria_math::keccak256::keccak256

pub fn keccak256(mut self: Span<u8>) -> u256