pub trait Authorizer {
// Required method
fn is_authorized(core_index: CoreIndex) -> AuthTrace;
}Expand description
The invocation trait for a JAM authorizer.
The declare_authorizer macro requires that its parameter implement this trait.
Required Methods§
The single entry-point of this PVM module, this determines whether a given Work Package should be authorized to run on a given core.
core_index: The index of the core on which the Work Package will be executed.
Returns the authorization output, an opaque blob which will be passed into both Refine and
Accumulate for all Work Items in the package assigned to core_index. If package is not
authorized, then this should panic instead.
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.