Skip to main content

IcpEventInit

Struct IcpEventInit 

Source
pub struct IcpEventInit {
    pub v: VersionString,
    pub d: Said,
    pub i: Prefix,
    pub s: KeriSequence,
    pub kt: Threshold,
    pub k: Vec<CesrKey>,
    pub nt: Threshold,
    pub n: Vec<Said>,
    pub bt: Threshold,
    pub b: Vec<Prefix>,
    pub c: Vec<ConfigTrait>,
    pub a: Vec<Seal>,
}
Expand description

Parameter struct for IcpEvent::new. Mirrors the existing field set 1-for-1 so call-site migration is a mechanical prefix/ suffix wrap. Future wire-format additions land on IcpEvent via a with_* method, not by widening this Init struct — that’s what makes the pattern future-proof.

Fields§

§v: VersionString

Version string (KERI10JSON…); a placeholder until finalized.

§d: Said

Self-addressing identifier (the event SAID); blank until finalized.

§i: Prefix

Identifier prefix; for inception this equals the SAID (self-addressing).

§s: KeriSequence

Sequence number (0 for inception).

§kt: Threshold

Signing threshold over the current keys k.

§k: Vec<CesrKey>

Current signing keys (CESR-encoded verkeys).

§nt: Threshold

Next-key threshold over the pre-rotation commitments n.

§n: Vec<Said>

Pre-rotation commitments (digests of the next keys).

§bt: Threshold

Backer (witness) threshold.

§b: Vec<Prefix>

Backer (witness) prefixes.

§c: Vec<ConfigTrait>

Configuration traits (e.g. establishment-only, do-not-delegate).

§a: Vec<Seal>

Anchored seals.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.