pub struct RotationShape {
pub add_devices: Vec<CurveType>,
pub remove_indices: Vec<u32>,
pub new_kt: Option<Threshold>,
pub new_nt: Option<Threshold>,
}Expand description
Shape of a rotation request: adds, removes, threshold changes.
A RotationShape::default() is a key-set-preserving rotation: same
key count and thresholds, only the pre-committed next keys rotate in.
Non-default variants drive multi-device topology changes (new device,
removed device, threshold change).
Fields§
§add_devices: Vec<CurveType>Curves for newly-added device slots. One fresh keypair is generated
per entry and appended to the new k list.
remove_indices: Vec<u32>Indices into the prior n commitment list to exclude from the new
k list. Requires CESR indexed-signature support (tracked for a
future pass); current validator rejects asymmetric rotations.
new_kt: Option<Threshold>New signing threshold. None keeps the prior kt.
new_nt: Option<Threshold>New next-rotation threshold. None keeps the prior nt.
Trait Implementations§
Source§impl Clone for RotationShape
impl Clone for RotationShape
Source§fn clone(&self) -> RotationShape
fn clone(&self) -> RotationShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RotationShape
impl Debug for RotationShape
Source§impl Default for RotationShape
impl Default for RotationShape
Source§fn default() -> RotationShape
fn default() -> RotationShape
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RotationShape
impl RefUnwindSafe for RotationShape
impl Send for RotationShape
impl Sync for RotationShape
impl Unpin for RotationShape
impl UnsafeUnpin for RotationShape
impl UnwindSafe for RotationShape
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
Mutably borrows from an owned value. Read more