wallet_standard_base/
utils.rs

1pub type Byte32Array = [u8; 32];
2
3pub type Byte64Array = [u8; 64];
4
5pub struct BaseUtils;
6
7impl BaseUtils {
8    /// Converts [SystemTime] to ISO 8601 datetime string as required by
9    /// Sign In With for wallet-standard
10    #[cfg(feature = "signIn")]
11    pub fn to_iso860(system_time: std::time::SystemTime) -> humantime::Rfc3339Timestamp {
12        humantime::format_rfc3339_millis(system_time)
13    }
14}