Struct sphinx_auther::nonce::Controller
source · [−]pub struct Controller(_, _, _);
Implementations
sourceimpl Controller
impl Controller
pub fn new(sk: SecretKey, pk: PublicKey, nonce: u64) -> Self
pub fn build_msg(&mut self, d: &[u8]) -> Result<Vec<u8>>
pub fn build_msg_with_nonce(&mut self, d: &[u8], nonce: u64) -> Result<Vec<u8>>
pub fn parse_msg(&mut self, input: &[u8]) -> Result<Vec<u8>>
pub fn parse_msg_with_nonce(
&mut self,
input: &[u8],
nonce: u64
) -> Result<Vec<u8>>
Auto Trait Implementations
impl RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl UnwindSafe for Controller
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more