pub async fn hex_to_bech32(&self, hex: &str, bech32_hrp: Option<&str>) -> crate::Result<String> {
        let address: Ed25519Address = hex.parse::<Ed25519Address>()?;
        match bech32_hrp {
            Some(hrp) => Ok(Address::Ed25519(address).to_bech32(hrp)),
            None => Ok(Address::Ed25519(address).to_bech32(self.get_bech32_hrp().await?.as_str())),
        }
    }
/// Transforms a hex encoded address to a bech32 encoded address
Transforms a hex encoded address to a bech32 encoded address
Transforms a hex encoded address to a bech32 encoded address
pub async fn hex_to_bech32(&self, hex: &str, bech32_hrp: Option<&str>) -> crate::Result<String> {
        let address: Ed25519Address = hex.parse::<Ed25519Address>()?;
        match bech32_hrp {
            Some(hrp) => Ok(Address::Ed25519(address).to_bech32(hrp)),
            None => Ok(Address::Ed25519(address).to_bech32(self.get_bech32_hrp().await?.as_str())),
        }
    }
pub async fn hex_to_bech32 ( & self , hex : & str , bech32_hrp : Option < & str > ) -> crate :: Result < String > { let address : Ed25519Address = hex . parse :: < Ed25519Address > ( ) ? ; match bech32_hrp { Some ( hrp ) => Ok ( Address :: Ed25519 ( address ) . to_bech32 ( hrp ) ) , None => Ok ( Address :: Ed25519 ( address ) . to_bech32 ( self . get_bech32_hrp ( ) . await ? . as_str ( ) ) ) , } }
Transforms a hex encoded address to a bech32 encoded address
Transforms a hex encoded address to a bech32 encoded address
&self
hex
&str
bech32_hrp
Option<&str>
&self
hex
&str
bech32_hrp
Option<&str>