pub fn hash_script(script: &Script) -> [u8; 32]
Computes the SHA-256 hash of a given script and returns the resulting 32-byte array.