pub struct OpaqueKeypair {
pub private: OpaquePrivateKeyBytes,
pub public: OpaquePublicKey,
}Expand description
An opaque keypair.
The encoded representation of an OpaqueKeypair consists of the encoded representation of its
OpaquePublicKey followed by the encoded representation of its OpaquePrivateKeyBytes.
Fields§
§private: OpaquePrivateKeyBytesThe opaque private key
public: OpaquePublicKeyThe opaque public key
Implementations§
Trait Implementations§
Source§impl Clone for OpaqueKeypair
impl Clone for OpaqueKeypair
Source§fn clone(&self) -> OpaqueKeypair
fn clone(&self) -> OpaqueKeypair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConstantTimeEq for OpaqueKeypair
impl ConstantTimeEq for OpaqueKeypair
Source§impl Debug for OpaqueKeypair
impl Debug for OpaqueKeypair
Source§impl Encode for OpaqueKeypair
impl Encode for OpaqueKeypair
Source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer.Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32 length prefix.Source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32 length prefix
set to Encode::encoded_len.Source§impl From<&OpaqueKeypair> for OpaquePublicKey
impl From<&OpaqueKeypair> for OpaquePublicKey
Source§fn from(keypair: &OpaqueKeypair) -> OpaquePublicKey
fn from(keypair: &OpaqueKeypair) -> OpaquePublicKey
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpaqueKeypair
impl RefUnwindSafe for OpaqueKeypair
impl Send for OpaqueKeypair
impl Sync for OpaqueKeypair
impl Unpin for OpaqueKeypair
impl UnwindSafe for OpaqueKeypair
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