#[non_exhaustive]pub struct KeygenOpts {
pub chain_name: String,
pub threshold_signature_scheme: ThresholdSignatureScheme,
pub derivation_path: Vec<u32>,
pub address_type: Option<String>,
pub back_up_to_dynamic: bool,
pub password: Option<String>,
}Expand description
Options for run_keygen.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.chain_name: String§threshold_signature_scheme: ThresholdSignatureScheme§derivation_path: Vec<u32>§address_type: Option<String>§back_up_to_dynamic: boolWhen true (the default), the customer’s shares are encrypted with
password and uploaded to Dynamic’s backup store; the wallet is
activated with BackupLocation::Dynamic. When false, no backup is
uploaded — the wallet is activated with BackupLocation::External
and the caller is responsible for vaulting the returned shares.
Mirrors back_up_to_dynamic on the Node and Python SDKs (PR #856).
password: Option<String>Required when back_up_to_dynamic=true — used to AES-GCM-encrypt
the customer’s shares before upload. Ignored when
back_up_to_dynamic=false.
Implementations§
Source§impl KeygenOpts
impl KeygenOpts
pub fn new( chain_name: impl Into<String>, threshold_signature_scheme: ThresholdSignatureScheme, derivation_path: Vec<u32>, ) -> Self
pub fn with_address_type(self, t: impl Into<String>) -> Self
Sourcepub fn with_back_up_to_dynamic(self, value: bool) -> Self
pub fn with_back_up_to_dynamic(self, value: bool) -> Self
Override back_up_to_dynamic (default true).
Sourcepub fn with_password(self, password: impl Into<String>) -> Self
pub fn with_password(self, password: impl Into<String>) -> Self
Provide the password used to encrypt the customer’s share for the
Dynamic-side backup. Required iff back_up_to_dynamic=true.
Trait Implementations§
Source§impl Clone for KeygenOpts
impl Clone for KeygenOpts
Source§fn clone(&self) -> KeygenOpts
fn clone(&self) -> KeygenOpts
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 moreAuto Trait Implementations§
impl Freeze for KeygenOpts
impl RefUnwindSafe for KeygenOpts
impl Send for KeygenOpts
impl Sync for KeygenOpts
impl Unpin for KeygenOpts
impl UnsafeUnpin for KeygenOpts
impl UnwindSafe for KeygenOpts
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