pub struct KeyPair<G: Group, SK: Clone = PrivateKey<G>> { /* private fields */ }Expand description
A Keypair trait with public-private verification
Implementations§
Trait Implementations§
Source§impl<'de, G: Group, SK> Deserialize<'de> for KeyPair<G, SK>
impl<'de, G: Group, SK> Deserialize<'de> for KeyPair<G, SK>
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
impl<G: Group, SK> Eq for KeyPair<G, SK>
Source§impl<G: Group, SK> Ord for KeyPair<G, SK>
impl<G: Group, SK> Ord for KeyPair<G, SK>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<G: Group, SK> PartialOrd for KeyPair<G, SK>
impl<G: Group, SK> PartialOrd for KeyPair<G, SK>
Auto Trait Implementations§
impl<G, SK> Freeze for KeyPair<G, SK>
impl<G, SK> RefUnwindSafe for KeyPair<G, SK>
impl<G, SK> Send for KeyPair<G, SK>
impl<G, SK> Sync for KeyPair<G, SK>
impl<G, SK> Unpin for KeyPair<G, SK>
impl<G, SK> UnsafeUnpin for KeyPair<G, SK>
impl<G, SK> UnwindSafe for KeyPair<G, SK>
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