referrerpolicy=no-referrer-when-downgrade

VerifySchedulingSignature

Trait VerifySchedulingSignature 

Source
pub trait VerifySchedulingSignature {
    const V3_SCHEDULING_ENABLED: bool;

    // Required method
    fn verify(signed_info: &SignedSchedulingInfo, relay_slot: Slot) -> bool;
}
Expand description

Verifier for V3 scheduling: reports whether V3 is enabled and verifies a candidate’s SignedSchedulingInfo.

Required Associated Constants§

Source

const V3_SCHEDULING_ENABLED: bool

Whether V3 scheduling validation is enabled.

Required Methods§

Source

fn verify(signed_info: &SignedSchedulingInfo, relay_slot: Slot) -> bool

Verify signed_info against the author eligible at relay_slot (the internal scheduling parent’s slot).

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 disabled, scheduling info accepted unconditionally. A real verifier should also turn V3 on.

Source§

const V3_SCHEDULING_ENABLED: bool = false

Source§

fn verify(_signed_info: &SignedSchedulingInfo, _relay_slot: Slot) -> bool

Implementors§