pub fn sha256_str_array<S>(param: S) -> b256 
Expand description

Returns the SHA-2-256 hash of param.
This function is specific for string arrays

Examples

use std::hash::*;

fn foo() {
    let result = sha256_str_array(__to_str_array("Fuel"));
    assert(result == 0xa80f942f4112036dfc2da86daf6d2ef6ede3164dd56d1000eb82fa87c992450f);
}