pub struct ClientSign;Expand description
Client side of signing (a single step: SignMsg1 in, SignMsg2 out).
Implementations§
Source§impl ClientSign
impl ClientSign
Sourcepub fn respond<R: CryptoRng + ?Sized>(
rng: &mut R,
setup: &VerifiedSetup,
share: &ClientKeyShare,
client_id: &[u8],
digest: &[u8; 32],
msg1: &[u8],
hd: Option<&HdPath>,
) -> Result<Vec<u8>>
pub fn respond<R: CryptoRng + ?Sized>( rng: &mut R, setup: &VerifiedSetup, share: &ClientKeyShare, client_id: &[u8], digest: &[u8; 32], msg1: &[u8], hd: Option<&HdPath>, ) -> Result<Vec<u8>>
Verifies SignMsg1, computes S and ψ_sig, returns SignMsg2 (envelope bytes).
setup should have its fixed-base tables built (with_tables) to meet the time budget.
Auto Trait Implementations§
impl Freeze for ClientSign
impl RefUnwindSafe for ClientSign
impl Send for ClientSign
impl Sync for ClientSign
impl Unpin for ClientSign
impl UnsafeUnpin for ClientSign
impl UnwindSafe for ClientSign
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