use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub struct AddChainResponse {
pub sct_version: u8,
pub id: String,
pub timestamp: u64,
pub extensions: String,
pub signature: String,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct GetSthResponse {
pub tree_size: u64,
pub timestamp: u64,
pub sha256_root_hash: String,
pub tree_head_signature: String,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct GetSthConsistencyResponse {
pub consistency: Vec<String>,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct GetProofByHashResponse {
pub leaf_index: u64,
pub audit_path: Vec<String>,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct Entry {
pub leaf_input: String,
pub extra_data: String,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct GetEntriesResponse {
pub entries: Vec<Entry>,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct GetRootsResponse {
pub certificates: Vec<String>,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct GetEntryAndProofResponse {
pub leaf_input: String,
pub extra_data: String,
pub audit_path: Vec<String>,
}