pub trait VerifySchedulingSignature {
const V3_SCHEDULING_ENABLED: bool;
// Required method
fn verify(
signed_info: &SignedSchedulingInfo,
internal_scheduling_parent_header: &RelayChainHeader,
) -> bool;
}Expand description
Verifier for V3 scheduling.
Reports whether V3 scheduling is enabled for the parachain (via
Self::V3_SCHEDULING_ENABLED) and, when it is, verifies the SignedSchedulingInfo
attached to a candidate (via Self::verify).
Required Associated Constants§
Sourceconst V3_SCHEDULING_ENABLED: bool
const V3_SCHEDULING_ENABLED: bool
Whether V3 scheduling validation is enabled.
Required Methods§
Sourcefn verify(
signed_info: &SignedSchedulingInfo,
internal_scheduling_parent_header: &RelayChainHeader,
) -> bool
fn verify( signed_info: &SignedSchedulingInfo, internal_scheduling_parent_header: &RelayChainHeader, ) -> bool
Verifies signed_info against internal_scheduling_parent_header.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl VerifySchedulingSignature for ()
Default no-op wiring: V3 scheduling disabled, scheduling info accepted unconditionally.
impl VerifySchedulingSignature for ()
Default no-op wiring: V3 scheduling disabled, scheduling info accepted unconditionally.
Replacing it with a real verifier should also turn V3 on.