pub struct BlindUser { /* private fields */ }Implementations§
Source§impl BlindUser
impl BlindUser
pub fn new(public_key: RsaPublicKey) -> Self
pub fn blind_message(&self, message: &[u8]) -> Result<(BigUint, BigUint)>
pub fn unblind_signature( &self, blind_signature: &BigUint, blinding_factor: &BigUint, ) -> Result<BigUint>
pub fn verify_signature(&self, message: &[u8], signature: &BigUint) -> bool
Auto Trait Implementations§
impl Freeze for BlindUser
impl RefUnwindSafe for BlindUser
impl Send for BlindUser
impl Sync for BlindUser
impl Unpin for BlindUser
impl UnwindSafe for BlindUser
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