[][src]Enum i2p_client::SigType

pub enum SigType {
    EdDsaSha512Ed25519,
    EdDsaSha512Ed25519ph,
    RedDsaSha512Ed25519,
    DsaSha1,
}

Variants

EdDsaSha512Ed25519

Pubkey 32 bytes; privkey 32 bytes; hash 64 bytes; sig 64 bytes

EdDsaSha512Ed25519ph

Prehash version (double hashing, for offline use such as su3, not for use on the network) Pubkey 32 bytes; privkey 32 bytes; hash 64 bytes; sig 64 bytes

RedDsaSha512Ed25519

Blinded version of EdDSA, use for encrypted LS2 Pubkey 32 bytes; privkey 32 bytes; hash 64 bytes; sig 64 bytes

DsaSha1

Methods

impl SigType[src]

pub fn as_string(&self) -> &'static str[src]

pub fn from_str(sig_type: &str) -> Result<Self, Error>[src]

Trait Implementations

impl Clone for SigType[src]

impl Copy for SigType[src]

impl Debug for SigType[src]

Auto Trait Implementations

impl RefUnwindSafe for SigType

impl Send for SigType

impl Sync for SigType

impl Unpin for SigType

impl UnwindSafe for SigType

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.