pub fn apply_powers(
mode: Mode,
budget: &Budget,
cx: &Context,
slots: &mut [Slot],
powers: Powers,
) -> ChipPlanExpand description
Set the module powers for powers (and, in the DSig paper, the
background bg) and plan the chip. Slots outside the mode get 0.
- Ed25519 paper: the sign module gets
powers.sign%, the verify modulepowers.verify%. - DSig paper: EdDSA gets
B% of the budget and the HBSS foreground100 − B; the foreground is split bypowers, the background byS(Ed25519 sign) and100 − S(Ed25519 verify).