Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

keccak_u128s_be

Computes the keccak256 of multiple uint128 values. The values are interpreted as big-endian. https://github.com/starkware-libs/cairo/blob/main/corelib/src/keccak.cairo

Arguments

  • input - Span of u128 values to hash
  • n_bytes - Total number of bytes to process

Returns

  • u256 - The keccak256 hash

Fully qualified path: alexandria_bytes::utils::keccak_u128s_be

pub fn keccak_u128s_be(input: Span<u128>, n_bytes: u32) -> u256