[][src]Struct sampi::SampiKeyPair

pub struct SampiKeyPair { /* fields omitted */ }

Implementations

impl SampiKeyPair[src]

pub fn new() -> Self[src]

impl SampiKeyPair[src]

pub fn from_bytes(bytes: &[u8]) -> Result<Self>[src]

pub fn to_bytes(&self) -> [u8; 64][src]

pub fn public_key_as_hex(&self) -> String[src]

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

pub fn list_keys() -> Result<Vec<(String, SampiKeyPair)>>[src]

pub fn save_to_file<T: AsRef<Path>>(&self, name: T) -> Result<()>[src]

pub fn load_from_file<T: AsRef<Path>>(name: T) -> Result<SampiKeyPair>[src]

pub fn new_sampi(&self) -> SampiBuilder[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,