[][src]Struct vru_sphinx::GlobalData

pub struct GlobalData<A, N> where
    A: Curve,
    N: ArrayLength<SharedSecret<A>>, 
{ pub shared_secrets: GenericArray<SharedSecret<A>, N>, }

Fields

shared_secrets: GenericArray<SharedSecret<A>, N>

Implementations

impl<A, N> GlobalData<A, N> where
    A: Curve + Clone,
    A::Scalar: Clone,
    N: ArrayLength<SharedSecret<A>>, 
[src]

pub fn new<H, B>(session_key: &A::Scalar, path: H) -> (Self, A) where
    H: Iterator<Item = B::AsymmetricKey>,
    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]

Auto Trait Implementations

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

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

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

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

impl<A, N> UnwindSafe for GlobalData<A, N> where
    <N as ArrayLength<GenericArray<u8, <<A as Curve>::Scalar as LineValid>::Length>>>::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.