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.