pub struct DkgSession {
pub authority_id: String,
pub session_nonce: [u8; 32],
pub ceremony_type: String,
}Expand description
A DKG session for forming (or re-sharing) an FTA.
Fields§
The authority being formed.
session_nonce: [u8; 32]Session nonce — unique per ceremony.
ceremony_type: StringThe ceremony type (dkg, reshare).
Implementations§
Source§impl DkgSession
impl DkgSession
Sourcepub fn pop_bytes(&self, member: &str, public_key: &[u8]) -> Vec<u8> ⓘ
pub fn pop_bytes(&self, member: &str, public_key: &[u8]) -> Vec<u8> ⓘ
The bytes each member’s proof of possession signs.
Sourcepub fn verify_contributions(
&self,
pops: &[ProofOfPossession],
quorum: Quorum,
verifier: &dyn SignatureVerifier,
) -> SignatifResult<()>
pub fn verify_contributions( &self, pops: &[ProofOfPossession], quorum: Quorum, verifier: &dyn SignatureVerifier, ) -> SignatifResult<()>
Verify every contribution: each proof of possession checks out against its claimed key, and at least T of N members contributed. This is the rogue-key-attack prevention requirement.
§Errors
Ceremony errors naming the first offending member.
Trait Implementations§
Source§impl Clone for DkgSession
impl Clone for DkgSession
Source§fn clone(&self) -> DkgSession
fn clone(&self) -> DkgSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DkgSession
impl Debug for DkgSession
Source§impl<'de> Deserialize<'de> for DkgSession
impl<'de> Deserialize<'de> for DkgSession
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DkgSession
impl RefUnwindSafe for DkgSession
impl Send for DkgSession
impl Sync for DkgSession
impl Unpin for DkgSession
impl UnsafeUnpin for DkgSession
impl UnwindSafe for DkgSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more