pub struct SparkConfig {
pub coordinator_identifier: String,
pub threshold: u32,
pub signing_operators: Vec<SparkSigningOperator>,
pub ssp_config: SparkSspConfig,
pub expected_withdraw_bond_sats: u64,
pub expected_withdraw_relative_block_locktime: u64,
pub max_token_transaction_inputs: Option<u32>,
}Expand description
Configuration for a custom Spark environment.
When set on Config, overrides the default Spark operator pool,
service provider, threshold, and token settings. This allows connecting
to alternative Spark deployments (e.g. dev/staging environments).
Fields§
§coordinator_identifier: StringHex-encoded identifier of the coordinator operator.
threshold: u32The FROST signing threshold (e.g. 2 of 3).
signing_operators: Vec<SparkSigningOperator>The set of signing operators.
ssp_config: SparkSspConfigService provider (SSP) configuration.
expected_withdraw_bond_sats: u64Expected bond amount in sats for token withdrawals.
expected_withdraw_relative_block_locktime: u64Expected relative block locktime for token withdrawals.
max_token_transaction_inputs: Option<u32>Cap on the inputs a single token transaction may spend. A send needing more first consolidates the wallet’s token outputs. Unset uses the SDK default (500).
Trait Implementations§
Source§impl Clone for SparkConfig
impl Clone for SparkConfig
Source§fn clone(&self) -> SparkConfig
fn clone(&self) -> SparkConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SparkConfig
impl RefUnwindSafe for SparkConfig
impl Send for SparkConfig
impl Sync for SparkConfig
impl Unpin for SparkConfig
impl UnsafeUnpin for SparkConfig
impl UnwindSafe for SparkConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request