pub enum BeaconMessageType {
VrfProof {
round: u64,
input: String,
proof: String,
output: String,
validator: String,
signature: String,
timestamp: DateTime<Utc>,
},
PartialSignature {
round: u64,
validator: String,
partial_sig: String,
signature: String,
timestamp: DateTime<Utc>,
},
FinalizedBeacon {
round: u64,
randomness: String,
vrf_proofs: Vec<String>,
threshold_sig: String,
participants: Vec<String>,
timestamp: DateTime<Utc>,
},
ValidatorRegistration {
validator: String,
public_key: String,
vrf_key: String,
stake: u64,
signature: String,
},
BiasChallenge {
round: u64,
challenger: String,
target_validator: String,
challenge_data: String,
signature: String,
},
}
Expand description
Randomness beacon message types
Variants§
VrfProof
VRF proof submission
Fields
PartialSignature
Partial signature for threshold signature
FinalizedBeacon
Finalized randomness for a round
Fields
ValidatorRegistration
Validator registration for beacon participation
BiasChallenge
Challenge for bias resistance
Trait Implementations§
Source§impl Clone for BeaconMessageType
impl Clone for BeaconMessageType
Source§fn clone(&self) -> BeaconMessageType
fn clone(&self) -> BeaconMessageType
Returns a duplicate of the value. Read more
1.0.0 · 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 BeaconMessageType
impl Debug for BeaconMessageType
Source§impl<'de> Deserialize<'de> for BeaconMessageType
impl<'de> Deserialize<'de> for BeaconMessageType
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
Source§impl PartialEq for BeaconMessageType
impl PartialEq for BeaconMessageType
Source§impl Serialize for BeaconMessageType
impl Serialize for BeaconMessageType
impl StructuralPartialEq for BeaconMessageType
Auto Trait Implementations§
impl Freeze for BeaconMessageType
impl RefUnwindSafe for BeaconMessageType
impl Send for BeaconMessageType
impl Sync for BeaconMessageType
impl Unpin for BeaconMessageType
impl UnwindSafe for BeaconMessageType
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