pub fn compute_agent_address(public_key: &str) -> String {
    let mut sha = Sha512::new();
    sha.input(public_key.as_bytes());

    String::from(PIKE_NAMESPACE) + PIKE_AGENT_NAMESPACE + &sha.result_str()[..62]
}
/// Computes the address a Pike Agent is stored at based on its public_key
Computes the address a Pike Agent is stored at based on its public_key
Computes the address a Pike Agent is stored at based on its public_key
pub fn compute_agent_address(public_key: &str) -> String {
    let mut sha = Sha512::new();
    sha.input(public_key.as_bytes());
    String::from(PIKE_NAMESPACE) + PIKE_AGENT_NAMESPACE + &sha.result_str()[..62]
}
pub fn compute_agent_address ( public_key : & str ) -> String { let mut sha = Sha512 :: new ( ) ; sha . input ( public_key . as_bytes ( ) ) ; String :: from ( PIKE_NAMESPACE ) + PIKE_AGENT_NAMESPACE + & sha . result_str ( ) [ .. 62 ] }
Computes the address a Pike Agent is stored at based on its public_key
Computes the address a Pike Agent is stored at based on its public_key
public_key
&str
public_key
&str