Struct blsttc::serde_impl::SerdeSecret [−][src]
pub struct SerdeSecret<T>(pub T);
Expand description
SerdeSecret
is a wrapper struct for serializing and deserializing secret keys. Due to security
concerns serialize shouldn’t be implemented for secret keys to avoid accidental leakage.
Whenever this struct is used the integrity of security boundaries should be checked carefully.
Implementations
Returns the actual secret from the wrapper
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for SerdeSecret<T> where
T: RefUnwindSafe,
impl<T> Send for SerdeSecret<T> where
T: Send,
impl<T> Sync for SerdeSecret<T> where
T: Sync,
impl<T> Unpin for SerdeSecret<T> where
T: Unpin,
impl<T> UnwindSafe for SerdeSecret<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V