holochain_client 0.8.0-dev.21

A Rust client for the Holochain Conductor API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use kitsune2_api::{DynLocalAgent, SpaceId};
use kitsune2_core::Ed25519LocalAgent;
use kitsune2_test_utils::agent::AgentBuilder;
use std::sync::Arc;

pub fn make_agent(space: &SpaceId) -> String {
    AgentBuilder {
        space_id: Some(space.clone()),
        ..Default::default()
    }
    .build(Arc::new(Ed25519LocalAgent::default()) as DynLocalAgent)
    .encode()
    .unwrap()
}