Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

u8_array_to_u256

Convert sha256 result(Array) to u256

Arguments

  • arr - Span of u8 values, length MUST be 32

Returns

  • u256 - The converted u256 value

Fully qualified path: alexandria_bytes::utils::u8_array_to_u256

pub fn u8_array_to_u256(arr: Span<u8>) -> u256