pub struct BatchSigningConfig {
pub enabled: bool,
pub max_size: usize,
pub max_latency_ms: u64,
}Expand description
Merkle batch signing settings (issue #392).
A TPM makes roughly 5-50 signatures per second. With batch signing
the agent collects up to max_size events (or what arrived within
max_latency_ms), hashes them into a Merkle tree and signs only the
root, once per batch; each event carries its inclusion proof.
Fields§
§enabled: boolSign events in Merkle batches instead of one by one.
max_size: usizeMost events per batch.
max_latency_ms: u64Longest an event waits for its batch to be signed.
Trait Implementations§
Source§impl Clone for BatchSigningConfig
impl Clone for BatchSigningConfig
Source§impl Debug for BatchSigningConfig
impl Debug for BatchSigningConfig
Source§impl Default for BatchSigningConfig
impl Default for BatchSigningConfig
Source§impl<'de> Deserialize<'de> for BatchSigningConfig
impl<'de> Deserialize<'de> for BatchSigningConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BatchSigningConfig
Source§impl PartialEq for BatchSigningConfig
impl PartialEq for BatchSigningConfig
Source§impl Serialize for BatchSigningConfig
impl Serialize for BatchSigningConfig
impl StructuralPartialEq for BatchSigningConfig
Auto Trait Implementations§
impl Freeze for BatchSigningConfig
impl RefUnwindSafe for BatchSigningConfig
impl Send for BatchSigningConfig
impl Sync for BatchSigningConfig
impl Unpin for BatchSigningConfig
impl UnsafeUnpin for BatchSigningConfig
impl UnwindSafe for BatchSigningConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.