[][src]Struct x25519_dalek::x25519::AllowUnreducedScalarBytes

struct AllowUnreducedScalarBytes([u8; 32]);

Derived serialization methods will not work on a StaticSecret because x25519 requires non-canonical scalars which are rejected by curve25519-dalek. Thus we provide a way to convert the bytes directly to a scalar using Serde's remote derive functionality.

Trait Implementations

impl From<AllowUnreducedScalarBytes> for Scalar[src]

Auto Trait Implementations

impl RefUnwindSafe for AllowUnreducedScalarBytes

impl Send for AllowUnreducedScalarBytes

impl Sync for AllowUnreducedScalarBytes

impl Unpin for AllowUnreducedScalarBytes

impl UnwindSafe for AllowUnreducedScalarBytes

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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Error = !

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.