pub struct SignerDaemon {
config: DaemonConfig,
}Expand description
The running daemon. Manages the coordinator connection and responds to signing requests.
Fields§
§config: DaemonConfigImplementations§
Source§impl SignerDaemon
impl SignerDaemon
Sourcepub fn new(config: DaemonConfig) -> Self
pub fn new(config: DaemonConfig) -> Self
Create a new daemon from configuration.
Sourcepub fn run(&self) -> RunResult
pub fn run(&self) -> RunResult
Connect to the coordinator, register, and enter the main loop. Returns when the connection drops and retries are exhausted.
fn connect_and_serve(&self) -> Result<()>
fn handle_signing_request( &self, stream: &mut Box<dyn SessionIo>, session_id: &str, _message: &[u8], share_bytes: &[u8], ) -> Result<()>
fn derive_commitment(&self, share_bytes: &[u8]) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl Freeze for SignerDaemon
impl RefUnwindSafe for SignerDaemon
impl Send for SignerDaemon
impl Sync for SignerDaemon
impl Unpin for SignerDaemon
impl UnsafeUnpin for SignerDaemon
impl UnwindSafe for SignerDaemon
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