[][src]Struct safe_nd::ClientFullId

pub struct ClientFullId { /* fields omitted */ }

A struct holding a keypair variant and the corresponding public ID for a network Client.

Methods

impl FullId[src]

pub fn new_ed25519<T: CryptoRng + Rng>(rng: &mut T) -> Self[src]

Constructs a FullId with a random Ed25519 keypair.

pub fn new_bls<T: CryptoRng + Rng>(rng: &mut T) -> Self[src]

Constructs a FullId with a random BLS keypair.

pub fn new_bls_share(bls_secret_key_share: BlsSecretKeyShare) -> Self[src]

Constructs a FullId from a BLS secret key share.

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

Creates a detached signature of data.

pub fn public_id(&self) -> &PublicId[src]

Returns the public ID.

Trait Implementations

impl Serialize for FullId[src]

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

Auto Trait Implementations

impl Sync for FullId

impl Send for FullId

impl Unpin for FullId

impl RefUnwindSafe for FullId

impl UnwindSafe for FullId

Blanket Implementations

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self