pub struct ClientFullId { /* private fields */ }Expand description
A struct holding a keypair variant and the corresponding public ID for a network Client.
Implementations§
Source§impl FullId
impl FullId
Sourcepub fn new_ed25519<T: CryptoRng + Rng>(rng: &mut T) -> Self
pub fn new_ed25519<T: CryptoRng + Rng>(rng: &mut T) -> Self
Constructs a FullId with a random Ed25519 keypair.
Sourcepub fn new_bls<T: CryptoRng + Rng>(rng: &mut T) -> Self
pub fn new_bls<T: CryptoRng + Rng>(rng: &mut T) -> Self
Constructs a FullId with a random BLS keypair.
Sourcepub fn public_key(&self) -> &PublicKey
pub fn public_key(&self) -> &PublicKey
Returns the PublicKey of the PublicId.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FullId
impl<'de> Deserialize<'de> for FullId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Keypair> for FullId
impl From<Keypair> for FullId
Source§fn from(ed25519_keypair: Ed25519Keypair) -> Self
fn from(ed25519_keypair: Ed25519Keypair) -> Self
Converts to this type from the input type.
Source§impl From<SecretKey> for FullId
impl From<SecretKey> for FullId
Source§fn from(bls_sk: BlsSecretKey) -> Self
fn from(bls_sk: BlsSecretKey) -> Self
Converts to this type from the input type.
impl Eq for FullId
impl StructuralPartialEq for FullId
Auto Trait Implementations§
impl Freeze for FullId
impl RefUnwindSafe for FullId
impl Send for FullId
impl Sync for FullId
impl Unpin for FullId
impl UnwindSafe for FullId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more