pub struct HandoverTranscript<E: Pairing> {
pub share_index: u32,
pub double_blind_share: E::G2,
pub commitment_to_share: E::G2,
pub commitment_to_g1: E::G1,
pub commitment_to_g2: E::G2,
pub incoming_pubkey: PublicKey<E>,
pub outgoing_pubkey: PublicKey<E>,
}Fields§
§commitment_to_g1: E::G1§commitment_to_g2: E::G2§incoming_pubkey: PublicKey<E>§outgoing_pubkey: PublicKey<E>Implementations§
Source§impl<E: Pairing> HandoverTranscript<E>
impl<E: Pairing> HandoverTranscript<E>
pub fn new( share_index: u32, outgoing_blinded_share: &BlindedKeyShare<E>, outgoing_pubkey: PublicKey<E>, incoming_validator_keypair: &Keypair<E>, rng: &mut impl RngCore, ) -> Self
pub fn validate(&self, share_commitment: ShareCommitment<E>) -> Result<bool>
pub fn finalize( &self, departing_validator_keypair: &Keypair<E>, share_commitment: ShareCommitment<E>, ) -> Result<BlindedKeyShare<E>>
Trait Implementations§
Source§impl<E: Clone + Pairing> Clone for HandoverTranscript<E>
impl<E: Clone + Pairing> Clone for HandoverTranscript<E>
Source§fn clone(&self) -> HandoverTranscript<E>
fn clone(&self) -> HandoverTranscript<E>
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<'de, E: Pairing> Deserialize<'de> for HandoverTranscript<E>where
PublicKey<E>: DeserializeOwned,
impl<'de, E: Pairing> Deserialize<'de> for HandoverTranscript<E>where
PublicKey<E>: DeserializeOwned,
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
impl<E: Eq + Pairing> Eq for HandoverTranscript<E>
Source§impl<E: Pairing> Serialize for HandoverTranscript<E>
impl<E: Pairing> Serialize for HandoverTranscript<E>
impl<E: PartialEq + Pairing> StructuralPartialEq for HandoverTranscript<E>
Auto Trait Implementations§
impl<E> Freeze for HandoverTranscript<E>
impl<E> RefUnwindSafe for HandoverTranscript<E>where
<E as Pairing>::G2: RefUnwindSafe,
<E as Pairing>::G1: RefUnwindSafe,
PublicKey<E>: RefUnwindSafe,
impl<E> Send for HandoverTranscript<E>
impl<E> Sync for HandoverTranscript<E>
impl<E> Unpin for HandoverTranscript<E>
impl<E> UnsafeUnpin for HandoverTranscript<E>
impl<E> UnwindSafe for HandoverTranscript<E>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more