[][src]Struct ed25519_compact::Noise

pub struct Noise(_);

Noise, for non-deterministic signatures.

Implementations

impl Noise[src]

pub const BYTES: usize[src]

Number of raw bytes for a noise component.

pub fn new(noise: [u8; 16]) -> Self[src]

Creates a new noise component from raw bytes.

pub fn from_slice(noise: &[u8]) -> Result<Self, Error>[src]

Creates noise from a slice.

impl Noise[src]

pub fn generate() -> Self[src]

Generates random noise.

Trait Implementations

impl Default for Noise[src]

fn default() -> Self[src]

Generates random noise.

impl Deref for Noise[src]

type Target = [u8; 16]

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Returns a noise as raw bytes.

Auto Trait Implementations

impl RefUnwindSafe for Noise

impl Send for Noise

impl Sync for Noise

impl Unpin for Noise

impl UnwindSafe for Noise

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.