pub struct Config<M, X, SS, T, D = Unit> {Show 13 fields
pub signer: PrivateKey,
pub manager: M,
pub blocker: X,
pub secret_store: SS,
pub strategy: T,
pub namespace: &'static [u8],
pub sharing_mode: Mode,
pub reveal: Reveal,
pub max_supported_mode: ModeVersion,
pub partition_prefix: String,
pub participants: Set<PublicKey>,
pub directory: D,
pub blocks_per_epoch: NonZeroU64,
}Expand description
Configuration for Engine.
Fields§
§signer: PrivateKeyEd25519 signer used for the one-shot consensus chain and DKG protocol messages.
manager: MP2P manager used for peer tracking.
blocker: XBlocker used for invalid peer behavior.
secret_store: SSUser-owned store for private DKG material.
strategy: TParallel verification strategy.
namespace: &'static [u8]Application namespace for DKG transcript separation.
sharing_mode: ModeSharing mode used for the generated threshold output.
reveal: RevealRevealed-share calculation used for the DKG ceremony.
max_supported_mode: ModeVersionMaximum sharing mode version accepted when decoding blocks.
partition_prefix: StringRuntime-storage partition prefix.
participants: Set<PublicKey>Participants in the DKG.
directory: DTransport directory for the participants.
Used to activate the one-shot chain’s peer set and embedded verbatim in the emitted genesis artifact. Every participant must configure the same directory.
blocks_per_epoch: NonZeroU64Length of the one-shot consensus epoch.
Auto Trait Implementations§
impl<M, X, SS, T, D> Freeze for Config<M, X, SS, T, D>
impl<M, X, SS, T, D> RefUnwindSafe for Config<M, X, SS, T, D>
impl<M, X, SS, T, D> Send for Config<M, X, SS, T, D>
impl<M, X, SS, T, D> Sync for Config<M, X, SS, T, D>
impl<M, X, SS, T, D> Unpin for Config<M, X, SS, T, D>
impl<M, X, SS, T, D> UnsafeUnpin for Config<M, X, SS, T, D>
impl<M, X, SS, T, D> UnwindSafe for Config<M, X, SS, T, D>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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