pub trait SessionProvider {
// Required methods
fn load_keys(&self) -> Result<Vec<KeypairEntry>, AgentError>;
fn confirmer(&self) -> Box<dyn Confirmer>;
fn audit(&self) -> Box<dyn AuditSink>;
fn clock(&self) -> Box<dyn Clock>;
}Expand description
Provider of the live session inputs per request: the custodied keypairs, a
fresh confirmer, audit sink, and clock. Implemented by the CLI over its
Ctx; behind a trait so the daemon stays face-agnostic and testable.
Required Methods§
Sourcefn load_keys(&self) -> Result<Vec<KeypairEntry>, AgentError>
fn load_keys(&self) -> Result<Vec<KeypairEntry>, AgentError>
Load the custodied keypairs that have a private half. Out-of-scope filtering is applied by the session against the agent’s scope (I13).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".