chia-client 0.41.1

Chia light client and async peer connections.
Documentation
1
2
3
4
5
6
7
use chia_traits::{Streamable, chia_error::Result};

pub fn stream<T: Streamable>(value: &T) -> Result<Vec<u8>> {
    let mut bytes = Vec::new();
    value.stream(&mut bytes)?;
    Ok(bytes)
}