1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::felt::Felt;

pub trait ToHexString {
    fn to_prefixed_hex_str(&self) -> String;
    fn to_nonprefixed_hex_str(&self) -> String;
}

pub trait HashProducer {
    type Error;
    fn generate_hash(&self) -> Result<Felt, Self::Error>;
}

pub trait ToDecimalString {
    fn to_decimal_string(&self) -> String;
}