pub struct Emission {
pub pubkey: [u8; 48],
pub weight: u64,
}Expand description
Standardized reward distribution record used in every L2 block.
The pubkey is a BLS public key (48 bytes), and weight is the relative
share in the reward pool. JSON encodes pubkey as a 0x-prefixed hex
string, and weight as a number.
Fields§
§pubkey: [u8; 48]BLS public key (48 bytes), serialized as 0x hex in JSON.
weight: u64Relative share of reward pool.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Emission
impl<'de> Deserialize<'de> for Emission
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 Eq for Emission
impl StructuralPartialEq for Emission
Auto Trait Implementations§
impl Freeze for Emission
impl RefUnwindSafe for Emission
impl Send for Emission
impl Sync for Emission
impl Unpin for Emission
impl UnwindSafe for Emission
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