Function encode_string_h256

Source
pub fn encode_string_h256(h256: &H256) -> String
Expand description

Encodes an H256 hash into a string representation.

ยงExamples

use primitive_types::H256;
use neo3::neo_types::encode_string_h256;
let hash = H256::repeat_byte(0xab);
let encoded = encode_string_h256(&hash);
assert!(encoded.starts_with("0x"));