[−][src]Struct secret_sharing::pedersen_dvss::PedersenDVSSParticipant
Fields
id: usize
secret: FieldElement
comm_coeffs: HashMap<usize, G1>
final_comm_coeffs: HashMap<usize, G1>
Methods
impl PedersenDVSSParticipant
[src]
pub fn new(id: usize, threshold: usize, total: usize, g: &G1, h: &G1) -> Self
[src]
Generates a new secret and verifiable shares of that secret for every participant
pub fn received_share(
&mut self,
sender_id: usize,
comm_coeffs: HashMap<usize, G1>,
share: (FieldElement, FieldElement),
threshold: usize,
total: usize,
g: &G1,
h: &G1
)
[src]
&mut self,
sender_id: usize,
comm_coeffs: HashMap<usize, G1>,
share: (FieldElement, FieldElement),
threshold: usize,
total: usize,
g: &G1,
h: &G1
)
Called by a participant when it receives a share from another participant with id sender_id
pub fn compute_final_comm_coeffs_and_shares(
&mut self,
threshold: usize,
total: usize,
g: &G1,
h: &G1
)
[src]
&mut self,
threshold: usize,
total: usize,
g: &G1,
h: &G1
)
Called by a participant when it has received shares from all participants. Computes the final share of the distributed secret
Auto Trait Implementations
impl RefUnwindSafe for PedersenDVSSParticipant
impl Send for PedersenDVSSParticipant
impl Sync for PedersenDVSSParticipant
impl Unpin for PedersenDVSSParticipant
impl UnwindSafe for PedersenDVSSParticipant
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,