[][src]Struct cjdns_keys::CJDNSPrivateKey

pub struct CJDNSPrivateKey { /* fields omitted */ }

CJDNS private key type

Implementations

impl CJDNSPrivateKey[src]

pub const SIZE: usize[src]

Size in bytes of the private key

impl CJDNSPrivateKey[src]

pub fn new_random<R: Random>(rand: &R) -> Self[src]

pub fn to_scalar(&self) -> Scalar[src]

pub fn is_zero(&self) -> bool[src]

pub fn raw(&self) -> &[u8; 32][src]

Trait Implementations

impl Clone for CJDNSPrivateKey[src]

impl Debug for CJDNSPrivateKey[src]

impl Deref for CJDNSPrivateKey[src]

type Target = [u8]

The resulting type after dereferencing.

impl Eq for CJDNSPrivateKey[src]

impl<'_> From<&'_ CJDNSPrivateKey> for CJDNSPublicKey[src]

impl From<[u8; 32]> for CJDNSPrivateKey[src]

impl Hash for CJDNSPrivateKey[src]

impl Ord for CJDNSPrivateKey[src]

impl PartialEq<CJDNSPrivateKey> for CJDNSPrivateKey[src]

impl PartialOrd<CJDNSPrivateKey> for CJDNSPrivateKey[src]

impl StructuralEq for CJDNSPrivateKey[src]

impl StructuralPartialEq for CJDNSPrivateKey[src]

impl<'_> TryFrom<&'_ str> for CJDNSPrivateKey[src]

type Error = KeyCreationError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for CJDNSPrivateKey

impl Send for CJDNSPrivateKey

impl Sync for CJDNSPrivateKey

impl Unpin for CJDNSPrivateKey

impl UnwindSafe for CJDNSPrivateKey

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.