pub struct ServerSign1 { /* private fields */ }Expand description
State after SignMsg1; consumed by ServerSign1::finish, so k₂ cannot be reused.
Implementations§
Source§impl ServerSign1
impl ServerSign1
Sourcepub fn finish(
self,
setup: &VerifiedSetup,
sk: &PaillierSk,
msg2: &[u8],
) -> Result<(Signature, Vec<u8>)>
pub fn finish( self, setup: &VerifiedSetup, sk: &PaillierSk, msg2: &[u8], ) -> Result<(Signature, Vec<u8>)>
Step 3: checks SignMsg2, decrypts and returns the signature plus an optional SignMsg3.
Trait Implementations§
Source§impl Drop for ServerSign1
impl Drop for ServerSign1
Auto Trait Implementations§
impl Freeze for ServerSign1
impl RefUnwindSafe for ServerSign1
impl Send for ServerSign1
impl Sync for ServerSign1
impl Unpin for ServerSign1
impl UnsafeUnpin for ServerSign1
impl UnwindSafe for ServerSign1
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