sha256_from_byte_array
Computes SHA256 hash directly from ByteArray input.
Optimized version of sha256 that works directly with ByteArray data without requiring conversion to Span first.
Arguments
data- Input data as a ByteArray reference
Returns
Array<u8>- 32-byte SHA256 hash result
Fully qualified path: alexandria_btc::hash::sha256_from_byte_array
pub fn sha256_from_byte_array(data: @ByteArray) -> Array<u8>