pub enum Genesis {
Implicit(Key),
Explicit(Vec<Key>),
}Expand description
How the principal was created (genesis mode).
Per SPEC §5, principals can be created implicitly (single key, no coz) or explicitly (multiple keys with genesis cozies).
Variants§
Implicit(Key)
Implicit genesis: single key, no coz required.
Per SPEC §5.1: “Identity emerges from first key possession”
PS = AS = KS = tmb(PR is None at L1/L2)
Explicit(Vec<Key>)
Explicit genesis: multiple keys established at creation.
Per SPEC §5.1: “Multi-key accounts require explicit genesis”
- PR is established by principal/create
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Genesis
impl RefUnwindSafe for Genesis
impl Send for Genesis
impl Sync for Genesis
impl Unpin for Genesis
impl UnsafeUnpin for Genesis
impl UnwindSafe for Genesis
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