pub enum SignedEntityType {
MithrilStakeDistribution(Epoch),
CardanoStakeDistribution(Epoch),
CardanoImmutableFilesFull(CardanoDbBeacon),
CardanoDatabase(CardanoDbBeacon),
CardanoTransactions(Epoch, BlockNumber),
}
Expand description
The signed entity type that represents a type of data signed by the Mithril
protocol Note: Each variant of this enum must be associated to an entry in
the signed_entity_type
table of the signer/aggregator nodes. The variant
are identified by their discriminant (i.e. index in the enum), thus the
modification of this type should only ever consist of appending new
variants.
Variants§
MithrilStakeDistribution(Epoch)
Mithril stake distribution
CardanoStakeDistribution(Epoch)
Cardano Stake Distribution
CardanoImmutableFilesFull(CardanoDbBeacon)
Full Cardano Immutable Files
CardanoDatabase(CardanoDbBeacon)
Cardano Database
CardanoTransactions(Epoch, BlockNumber)
Cardano Transactions
Implementations§
Source§impl SignedEntityType
impl SignedEntityType
Sourcepub fn genesis(epoch: Epoch) -> Self
pub fn genesis(epoch: Epoch) -> Self
Create a new signed entity type for a genesis certificate (a Self::MithrilStakeDistribution)
Sourcepub fn get_epoch_when_signed_entity_type_is_signed(&self) -> Epoch
pub fn get_epoch_when_signed_entity_type_is_signed(&self) -> Epoch
Return the epoch at which the signed entity type is signed.
Sourcepub fn get_json_beacon(&self) -> StdResult<String>
pub fn get_json_beacon(&self) -> StdResult<String>
Return a JSON serialized value of the internal beacon
Sourcepub fn get_open_message_timeout(&self) -> Option<Duration>
pub fn get_open_message_timeout(&self) -> Option<Duration>
Return the associated open message timeout
Trait Implementations§
Source§impl Clone for SignedEntityType
impl Clone for SignedEntityType
Source§fn clone(&self) -> SignedEntityType
fn clone(&self) -> SignedEntityType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SignedEntityType
impl Debug for SignedEntityType
Source§impl<'de> Deserialize<'de> for SignedEntityType
impl<'de> Deserialize<'de> for SignedEntityType
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>,
Source§impl Display for SignedEntityType
impl Display for SignedEntityType
Source§impl<'_enum> From<&'_enum SignedEntityType> for SignedEntityTypeDiscriminants
impl<'_enum> From<&'_enum SignedEntityType> for SignedEntityTypeDiscriminants
Source§fn from(val: &'_enum SignedEntityType) -> SignedEntityTypeDiscriminants
fn from(val: &'_enum SignedEntityType) -> SignedEntityTypeDiscriminants
Source§impl From<SignedEntityType> for SignedEntityTypeDiscriminants
impl From<SignedEntityType> for SignedEntityTypeDiscriminants
Source§fn from(val: SignedEntityType) -> SignedEntityTypeDiscriminants
fn from(val: SignedEntityType) -> SignedEntityTypeDiscriminants
Source§impl IntoDiscriminant for SignedEntityType
impl IntoDiscriminant for SignedEntityType
Source§type Discriminant = SignedEntityTypeDiscriminants
type Discriminant = SignedEntityTypeDiscriminants
fn discriminant(&self) -> Self::Discriminant
Source§impl PartialEq for SignedEntityType
impl PartialEq for SignedEntityType
Source§impl Serialize for SignedEntityType
impl Serialize for SignedEntityType
impl Eq for SignedEntityType
impl StructuralPartialEq for SignedEntityType
Auto Trait Implementations§
impl Freeze for SignedEntityType
impl RefUnwindSafe for SignedEntityType
impl Send for SignedEntityType
impl Sync for SignedEntityType
impl Unpin for SignedEntityType
impl UnwindSafe for SignedEntityType
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
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>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
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>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.