[][src]Struct nimiq_keys::KeyPair

pub struct KeyPair {
    pub public: PublicKey,
    pub private: PrivateKey,
}

Fields

public: PublicKeyprivate: PrivateKey

Methods

impl KeyPair[src]

pub fn partial_sign(
    &self,
    public_keys: &[PublicKey],
    secret: &RandomSecret,
    commitments: &[Commitment],
    data: &[u8]
) -> (PartialSignature, PublicKey, Commitment)
[src]

impl KeyPair[src]

pub fn generate() -> Self[src]

pub fn sign(&self, data: &[u8]) -> Signature[src]

Trait Implementations

impl From<PrivateKey> for KeyPair[src]

impl Clone for KeyPair[src]

impl Debug for KeyPair[src]

impl Serialize for KeyPair[src]

impl Deserialize for KeyPair[src]

Auto Trait Implementations

impl Send for KeyPair

impl Sync for KeyPair

impl Unpin for KeyPair

impl UnwindSafe for KeyPair

impl RefUnwindSafe for KeyPair

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self