[][src]Struct vru_sphinx::LocalData

pub struct LocalData<A> where
    A: Curve
{ pub shared_secret: SharedSecret<A>, }

Fields

shared_secret: SharedSecret<A>

Implementations

impl<A> LocalData<A> where
    A: Curve
[src]

pub fn next<B>(secret_key: &A::Scalar, this: &A) -> (Self, A) where
    B: Sphinx<AsymmetricKey = A>, 
[src]

pub fn digest<D>(&self) -> Self where
    D: Default + Update + FixedOutput<OutputSize = <<A as Curve>::Scalar as LineValid>::Length>, 
[src]

Trait Implementations

impl<A> Debug for LocalData<A> where
    A: Curve + Debug
[src]

impl<A> Eq for LocalData<A> where
    A: Curve + PartialEq
[src]

impl<A> PartialEq<LocalData<A>> for LocalData<A> where
    A: Curve + PartialEq
[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for LocalData<A> where
    <<<A as Curve>::Scalar as LineValid>::Length as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
    <A as Curve>::Scalar: LineValid

impl<A> Send for LocalData<A> where
    <<A as Curve>::Scalar as LineValid>::Length: ArrayLength<u8>,
    <A as Curve>::Scalar: LineValid

impl<A> Sync for LocalData<A> where
    <<A as Curve>::Scalar as LineValid>::Length: ArrayLength<u8>,
    <A as Curve>::Scalar: LineValid

impl<A> Unpin for LocalData<A> where
    <<<A as Curve>::Scalar as LineValid>::Length as ArrayLength<u8>>::ArrayType: Unpin,
    <A as Curve>::Scalar: LineValid

impl<A> UnwindSafe for LocalData<A> where
    <<<A as Curve>::Scalar as LineValid>::Length as ArrayLength<u8>>::ArrayType: UnwindSafe,
    <A as Curve>::Scalar: LineValid

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 = 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.