[][src]Struct threshold_crypto::serde_impl::SerdeSecret

pub struct SerdeSecret<T>(pub T);

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

impl<T> SerdeSecret<T>[src]

pub fn into_inner(self) -> T[src]

Returns the actual secret from the wrapper

pub fn inner(&self) -> &T[src]

Returns a reference to the actual secret contained in the wrapper

Trait Implementations

impl<T: Clone> Clone for SerdeSecret<T>[src]

impl<T: Debug> Debug for SerdeSecret<T>[src]

impl<T> Deref for SerdeSecret<T>[src]

type Target = T

The resulting type after dereferencing.

impl<'de, T: Deserialize<'de>> Deserialize<'de> for SerdeSecret<T>[src]

impl<T: Eq> Eq for SerdeSecret<T>[src]

impl<T: PartialEq> PartialEq<SerdeSecret<T>> for SerdeSecret<T>[src]

impl<T: SerializeSecret> Serialize for SerdeSecret<T>[src]

impl<T> StructuralEq for SerdeSecret<T>[src]

impl<T> StructuralPartialEq for SerdeSecret<T>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,