[−][src]Struct safe_nd::ClientFullId
A struct holding a keypair variant and the corresponding public ID for a network Client.
Implementations
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 Clone for FullId
[src]
impl Debug for FullId
[src]
impl<'de> Deserialize<'de> for FullId
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for FullId
[src]
impl From<Keypair> for FullId
[src]
fn from(ed25519_keypair: Ed25519Keypair) -> Self
[src]
impl From<SecretKey> for FullId
[src]
fn from(bls_sk: BlsSecretKey) -> Self
[src]
impl From<SecretKeyShare> for FullId
[src]
fn from(bls_secret_key_share: BlsSecretKeyShare) -> Self
[src]
impl PartialEq<FullId> for FullId
[src]
impl Serialize for FullId
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for FullId
[src]
impl StructuralPartialEq for FullId
[src]
Auto Trait Implementations
impl RefUnwindSafe for FullId
impl Send for FullId
impl Sync for FullId
impl Unpin for FullId
impl UnwindSafe for FullId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,