hash256_from_byte_array
Computes Bitcoin Hash256 (double SHA256) directly from ByteArray input.
Optimized version of hash256 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 Hash256 result
Fully qualified path: alexandria_btc::hash::hash256_from_byte_array
pub fn hash256_from_byte_array(data: @ByteArray) -> Array<u8>