pub struct GenesisSelfCheckData {
pub dna_info: DnaInfo,
pub membrane_proof: Option<MembraneProof>,
pub agent_key: AgentPubKey,
}
Expand description
Data passed into the genesis_self_check callback for verifying the initial chain entries
Fields
dna_info: DnaInfo
The Dna header (1st element)
membrane_proof: Option<MembraneProof>
The proof of membership provided by the AgentValidationPkg (2nd element)
agent_key: AgentPubKey
The 3rd element of the chain, the agent key
Trait Implementations
sourceimpl Debug for GenesisSelfCheckData
impl Debug for GenesisSelfCheckData
sourceimpl<'de> Deserialize<'de> for GenesisSelfCheckData
impl<'de> Deserialize<'de> for GenesisSelfCheckData
sourcefn 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
sourceimpl Serialize for GenesisSelfCheckData
impl Serialize for GenesisSelfCheckData
sourceimpl TryFrom<&'_ GenesisSelfCheckData> for SerializedBytes
impl TryFrom<&'_ GenesisSelfCheckData> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
sourcefn try_from(
t: &GenesisSelfCheckData
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(
t: &GenesisSelfCheckData
) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
sourceimpl TryFrom<GenesisSelfCheckData> for SerializedBytes
impl TryFrom<GenesisSelfCheckData> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
sourcefn try_from(
t: GenesisSelfCheckData
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(
t: GenesisSelfCheckData
) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
sourceimpl TryFrom<SerializedBytes> for GenesisSelfCheckData
impl TryFrom<SerializedBytes> for GenesisSelfCheckData
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
sourcefn try_from(
sb: SerializedBytes
) -> Result<GenesisSelfCheckData, SerializedBytesError>
fn try_from(
sb: SerializedBytes
) -> Result<GenesisSelfCheckData, SerializedBytesError>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for GenesisSelfCheckData
impl Send for GenesisSelfCheckData
impl Sync for GenesisSelfCheckData
impl Unpin for GenesisSelfCheckData
impl UnwindSafe for GenesisSelfCheckData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more