pub struct SignerState {
pub key_package: KeyPackage,
pub pubkey_package: PublicKeyPackage,
pub policy: SignerPolicy,
pub vault: Mutex<EphemeralNonceVault>,
}Expand description
Signer daemon state holding the KeyPackage share and policy.
Fields§
§key_package: KeyPackage§pubkey_package: PublicKeyPackage§policy: SignerPolicy§vault: Mutex<EphemeralNonceVault>Implementations§
Source§impl SignerState
impl SignerState
pub fn new( key_package: KeyPackage, pubkey_package: PublicKeyPackage, policy: SignerPolicy, ) -> Self
Sourcepub fn handle_sign_request(
&self,
req: &SignCertRequestPayload,
) -> QuorumRpcMessage
pub fn handle_sign_request( &self, req: &SignCertRequestPayload, ) -> QuorumRpcMessage
Handles a sign request from the Coordinator: validates payload and policy, atomically consumes the nonce, generates a replenishment commitment, and emits the share.
Auto Trait Implementations§
impl !Freeze for SignerState
impl RefUnwindSafe for SignerState
impl Send for SignerState
impl Sync for SignerState
impl Unpin for SignerState
impl UnsafeUnpin for SignerState
impl UnwindSafe for SignerState
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