pub struct Ed25519Sign {
pub specialized: bool,
pub shared_sha: bool,
pub shape: ShapeKnobs,
}Expand description
The Ed25519 signing module as a chip-planner component. Its plan is the
best frontier::plan_sign_with build for the share it is given.
Fields§
§specialized: boolSpecialized memory layout instead of the as-built one.
Hash through the shared SHA-512 line.
shape: ShapeKnobsBlock ratio and batch compression.
Trait Implementations§
Source§impl Clone for Ed25519Sign
impl Clone for Ed25519Sign
Source§fn clone(&self) -> Ed25519Sign
fn clone(&self) -> Ed25519Sign
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Component for Ed25519Sign
Chip-planner interface of the signing module.
impl Component for Ed25519Sign
Chip-planner interface of the signing module.
Source§fn knobs(&self) -> Vec<Knob>
fn knobs(&self) -> Vec<Knob>
The two choice knobs; the selected index is 0 for the first label.
Source§fn set_knob(&mut self, index: usize, value: f64)
fn set_knob(&mut self, index: usize, value: f64)
Applies a knob change; value is the chosen label index, and index
0 is the specialized layout or the shared line. Indices 2.. are the
shape knobs (ShapeKnobs).
Source§fn plan(&self, share: &Share, cx: &Context) -> Option<Plan>
fn plan(&self, share: &Share, cx: &Context) -> Option<Plan>
Best signing build within share at the context’s clock, or None
when nothing fits. On the shared line the plan demands three SHA-512
blocks per signature from the line.
Source§fn build_flags(&self, plan: &Plan) -> BuildFlags
fn build_flags(&self, plan: &Plan) -> BuildFlags
Compile-time settings that would build this plan: the
fb,sha,sc,cp profile build.rs parses (sha = 0 on the shared
line; 1,1,1,0 selects the small signer) and the SHA mode.
§fn fixed(&self) -> Option<Cost>
fn fixed(&self) -> Option<Cost>
None to take a
share of its side.§fn size_for(&self, _per_second: f64, _cx: &Context) -> Option<Cost>
fn size_for(&self, _per_second: f64, _cx: &Context) -> Option<Cost>
per_second units of what it supplies
(SHA-512 blocks) at cx’s clock, or None when its size is set by
hand (the default). The planner ([plan_chip]) calls it with the
demand of the chip it plans, so the line never limits the chip.§fn resize(&mut self, _allowance: Cost)
fn resize(&mut self, _allowance: Cost)
apply_layout] calls it), so fixed and the next
plan start from it.None. The TUI shows
it instead of “nothing fits”.Source§impl Debug for Ed25519Sign
impl Debug for Ed25519Sign
Auto Trait Implementations§
impl Freeze for Ed25519Sign
impl RefUnwindSafe for Ed25519Sign
impl Send for Ed25519Sign
impl Sync for Ed25519Sign
impl Unpin for Ed25519Sign
impl UnsafeUnpin for Ed25519Sign
impl UnwindSafe for Ed25519Sign
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more