pub trait HypotheticalOrConcreteCandidate {
// Required methods
fn commitments(&self) -> Option<&CandidateCommitments>;
fn persisted_validation_data(&self) -> Option<&PersistedValidationData>;
fn validation_code_hash(&self) -> Option<ValidationCodeHash>;
fn parent_head_data_hash(&self) -> Hash;
fn output_head_data_hash(&self) -> Option<Hash>;
fn relay_parent(&self) -> Hash;
fn candidate_hash(&self) -> CandidateHash;
}
Expand description
Trait for a hypothetical or concrete candidate, as needed when assessing the validity of a potential candidate.
Required Methods§
sourcefn commitments(&self) -> Option<&CandidateCommitments>
fn commitments(&self) -> Option<&CandidateCommitments>
Return a reference to the candidate commitments, if present.
sourcefn persisted_validation_data(&self) -> Option<&PersistedValidationData>
fn persisted_validation_data(&self) -> Option<&PersistedValidationData>
Return a reference to the persisted validation data, if present.
sourcefn validation_code_hash(&self) -> Option<ValidationCodeHash>
fn validation_code_hash(&self) -> Option<ValidationCodeHash>
Return a reference to the validation code hash, if present.
sourcefn parent_head_data_hash(&self) -> Hash
fn parent_head_data_hash(&self) -> Hash
Return the parent head hash.
sourcefn output_head_data_hash(&self) -> Option<Hash>
fn output_head_data_hash(&self) -> Option<Hash>
Return the output head hash, if present.
sourcefn relay_parent(&self) -> Hash
fn relay_parent(&self) -> Hash
Return the relay parent hash.
sourcefn candidate_hash(&self) -> CandidateHash
fn candidate_hash(&self) -> CandidateHash
Return the candidate hash.