pub enum XField {
None,
AggregatePublicKey(PublicKey),
MaxBlockSize(u32),
Unknown(u8, Vec<u8>),
}
Expand description
An extra field that allows the block header to hold arbitrary data.
Variants§
None
xfield isn’t used.
AggregatePublicKey(PublicKey)
Aggregate public key used to verify block proof.
MaxBlockSize(u32)
Max block size to change the block size limit.
Unknown(u8, Vec<u8>)
Unknown type
Implementations§
source§impl XField
impl XField
sourcepub fn field_type(&self) -> u8
pub fn field_type(&self) -> u8
Return xfieldType.
sourcepub fn signature_hash(&self) -> Result<XFieldHash, Error>
pub fn signature_hash(&self) -> Result<XFieldHash, Error>
Return hash of serialized XField for signing
Trait Implementations§
source§impl PartialEq for XField
impl PartialEq for XField
impl Eq for XField
impl StructuralEq for XField
impl StructuralPartialEq for XField
Auto Trait Implementations§
impl RefUnwindSafe for XField
impl Send for XField
impl Sync for XField
impl Unpin for XField
impl UnwindSafe for XField
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> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,
Casts the value.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,
Casts the value.