pub struct XPublicKey { /* private fields */ }Expand description
The public key for the hybrid encryption scheme.
Implementations§
Source§impl XPublicKey
impl XPublicKey
Sourcepub fn from(sk: &XSecretKey) -> XPublicKey
pub fn from(sk: &XSecretKey) -> XPublicKey
Derive the public key from the secret key.
Trait Implementations§
Source§impl Clone for XPublicKey
impl Clone for XPublicKey
Source§fn clone(&self) -> XPublicKey
fn clone(&self) -> XPublicKey
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 Debug for XPublicKey
impl Debug for XPublicKey
Source§impl<'de> Deserialize<'de> for XPublicKey
impl<'de> Deserialize<'de> for XPublicKey
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<XPublicKey> for JsValue
impl From<XPublicKey> for JsValue
Source§fn from(value: XPublicKey) -> Self
fn from(value: XPublicKey) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for XPublicKey
impl FromWasmAbi for XPublicKey
Source§impl IntoWasmAbi for XPublicKey
impl IntoWasmAbi for XPublicKey
Source§impl LongRefFromWasmAbi for XPublicKey
impl LongRefFromWasmAbi for XPublicKey
Source§impl NoahFromToBytes for XPublicKey
impl NoahFromToBytes for XPublicKey
Source§impl OptionFromWasmAbi for XPublicKey
impl OptionFromWasmAbi for XPublicKey
Source§impl OptionIntoWasmAbi for XPublicKey
impl OptionIntoWasmAbi for XPublicKey
Source§impl PartialEq for XPublicKey
impl PartialEq for XPublicKey
Source§impl RefFromWasmAbi for XPublicKey
impl RefFromWasmAbi for XPublicKey
Source§type Anchor = RcRef<XPublicKey>
type Anchor = RcRef<XPublicKey>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for XPublicKey
impl RefMutFromWasmAbi for XPublicKey
Source§impl Serialize for XPublicKey
impl Serialize for XPublicKey
Source§impl TryFromJsValue for XPublicKey
impl TryFromJsValue for XPublicKey
Source§impl VectorFromWasmAbi for XPublicKey
impl VectorFromWasmAbi for XPublicKey
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[XPublicKey]>
Source§impl VectorIntoWasmAbi for XPublicKey
impl VectorIntoWasmAbi for XPublicKey
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[XPublicKey]>) -> Self::Abi
Source§impl WasmDescribeVector for XPublicKey
impl WasmDescribeVector for XPublicKey
impl Eq for XPublicKey
impl SupportsConstructor for XPublicKey
impl SupportsInstanceProperty for XPublicKey
impl SupportsStaticProperty for XPublicKey
Auto Trait Implementations§
impl Freeze for XPublicKey
impl RefUnwindSafe for XPublicKey
impl Send for XPublicKey
impl Sync for XPublicKey
impl Unpin for XPublicKey
impl UnwindSafe for XPublicKey
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.