ic_tee_agent/lib.rs
1use ic_auth_types::ByteBufB64;
2use serde::{Deserialize, Serialize};
3
4pub mod agent;
5pub mod http;
6pub mod setting;
7
8#[derive(Clone, Debug, Deserialize, Serialize)]
9pub struct RPCRequest {
10 pub method: String,
11 pub params: ByteBufB64, // params should be encoded in CBOR format
12}
13
14#[derive(Clone, Debug, Serialize)]
15pub struct RPCRequestRef<'a> {
16 pub method: &'a str,
17 pub params: &'a ByteBufB64,
18}
19
20// result should be encoded in CBOR format
21pub type RPCResponse = Result<ByteBufB64, String>;