Struct lightning::sign::RandomBytes
source · pub struct RandomBytes { /* private fields */ }
Expand description
An implementation of EntropySource
using ChaCha20.
Implementations§
Trait Implementations§
source§impl Debug for RandomBytes
impl Debug for RandomBytes
source§impl EntropySource for RandomBytes
impl EntropySource for RandomBytes
source§fn get_secure_random_bytes(&self) -> [u8; 32]
fn get_secure_random_bytes(&self) -> [u8; 32]
Gets a unique, cryptographically-secure, random 32-byte value. This method must return a
different value each time it is called.
Auto Trait Implementations§
impl !Freeze for RandomBytes
impl RefUnwindSafe for RandomBytes
impl Send for RandomBytes
impl Sync for RandomBytes
impl Unpin for RandomBytes
impl UnwindSafe for RandomBytes
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