sha256_byte_array
Computes SHA256 hash directly from ByteArray input to ByteArray output.
Optimized version of sha256 that works directly with ByteArray data without requiring last conversion to ByteArray.
Arguments
data- Input data as a ByteArray reference
Returns
ByteArray- 32-byte SHA256 hash result
Usage
Efficient SHA256 computation when working with ByteArray outputs.
Fully qualified path: alexandria_btc::hash::sha256_byte_array
pub fn sha256_byte_array(data: @ByteArray) -> ByteArray