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

#![allow(unused)]
fn main() {
pub fn keccak256(mut self: Span<u8>) -> u256
}