Struct feeless::Private[][src]

pub struct Private(_);

256 bit private key which can generate a public key.

Implementations

impl Private[src]

pub fn random() -> Self[src]

pub fn to_public(&self) -> Result<Public, FeelessError>[src]

Generate the public key for this private key.

If you wish to convert this private key to a Nano address you will need to take another step:

use feeless::Private;
use std::str::FromStr;

let s = "0000000000000000000000000000000000000000000000000000000000000000";
let address = Private::from_str(s)?.to_public()?.to_address();

pub fn to_address(&self) -> Result<Address, FeelessError>[src]

pub fn sign(&self, message: &[u8]) -> Result<Signature, FeelessError>[src]

Trait Implementations

impl Clone for Private[src]

impl Debug for Private[src]

impl<'de> Deserialize<'de> for Private[src]

impl Display for Private[src]

impl FromStr for Private[src]

type Err = FeelessError

The associated error which can be returned from parsing.

impl Serialize for Private[src]

impl TryFrom<&'_ [u8]> for Private[src]

type Error = FeelessError

The type returned in the event of a conversion error.

impl UpperHex for Private[src]

Auto Trait Implementations

impl RefUnwindSafe for Private

impl Send for Private

impl Sync for Private

impl Unpin for Private

impl UnwindSafe for Private

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

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

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

impl<T> Instrument for T[src]

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T> TryConv for T

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>,