Struct LabradorTranscript

Source
pub struct LabradorTranscript<S: Sponge> {
    pub u1: RqVector,
    pub vector_p: Vec<Zq>,
    pub b_ct_aggr: RqVector,
    pub u2: RqVector,
    pub z: RqVector,
    pub t: RqMatrix,
    pub g: RqMatrix,
    pub h: RqMatrix,
    /* private fields */
}

Fields§

§u1: RqVector§vector_p: Vec<Zq>§b_ct_aggr: RqVector§u2: RqVector§z: RqVector§t: RqMatrix§g: RqMatrix§h: RqMatrix

Implementations§

Source§

impl<S: Sponge> LabradorTranscript<S>

Source

pub fn new(sponge: S) -> Self

Source

pub fn set_u1(&mut self, u1: RqVector)

Source

pub fn absorb_u1(&mut self, u1: &RqVector)

Source

pub fn set_vector_p(&mut self, p: Vec<Zq>)

Source

pub fn absorb_vector_p(&mut self, p: &[Zq])

Source

pub fn set_vector_b_ct_aggr(&mut self, input: RqVector)

Source

pub fn absorb_vector_b_ct_aggr(&mut self, input: &RqVector)

Source

pub fn set_u2(&mut self, u2: RqVector)

Source

pub fn absorb_u2(&mut self, u2: &RqVector)

Source

pub fn set_recursive_part( &mut self, z: RqVector, t: RqMatrix, g: RqMatrix, h: RqMatrix, )

Source

pub fn generate_projections( &mut self, security_parameter: usize, rank: usize, multiplicity: usize, ) -> Projection

Source

pub fn generate_vector_psi( &mut self, number_of_vectors: usize, vector_length: usize, ) -> Vec<Vec<Zq>>

Source

pub fn generate_vector_omega( &mut self, number_of_vectors: usize, security_parameter: usize, ) -> Vec<Vec<Zq>>

Source

pub fn generate_rq_vector(&mut self, vector_length: usize) -> RqVector

Source

pub fn generate_challenges( &mut self, op_norm: f64, multiplicity: usize, ) -> RqVector

Auto Trait Implementations§

§

impl<S> Freeze for LabradorTranscript<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for LabradorTranscript<S>
where S: RefUnwindSafe,

§

impl<S> Send for LabradorTranscript<S>
where S: Send,

§

impl<S> Sync for LabradorTranscript<S>
where S: Sync,

§

impl<S> Unpin for LabradorTranscript<S>
where S: Unpin,

§

impl<S> UnwindSafe for LabradorTranscript<S>
where S: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

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

§

fn vzip(self) -> V