Skip to main content

generate_agent

Function generate_agent 

Source
pub fn generate_agent(
    name: &str,
    agent_type: &str,
) -> (AgentIdentity, HybridPrivateKey)
Expand description

Generate a fresh AgentIdentity.

Only available with the std feature (uses SystemTime::now() for created_at). In no_std environments, build the struct directly and supply your own timestamp.