pub struct MultisigConfig {
pub required_signatures: u8,
pub total_keys: u8,
pub xpubs: Vec<String>,
pub key_labels: Vec<String>,
pub derivation_path: String,
pub network: Network,
}Expand description
Multi-signature configuration
Fields§
§required_signatures: u8Number of required signatures (M)
total_keys: u8Total number of keys (N)
xpubs: Vec<String>Extended public keys for all participants
key_labels: Vec<String>Key labels/identifiers
derivation_path: StringDerivation path for addresses
network: NetworkNetwork (mainnet, testnet, signet)
Implementations§
Source§impl MultisigConfig
impl MultisigConfig
Sourcepub fn new_2of3(
xpubs: Vec<String>,
key_labels: Vec<String>,
network: Network,
) -> Result<Self>
pub fn new_2of3( xpubs: Vec<String>, key_labels: Vec<String>, network: Network, ) -> Result<Self>
Create a new 2-of-3 multisig configuration
Sourcepub fn new_custom(
required_signatures: u8,
xpubs: Vec<String>,
key_labels: Vec<String>,
network: Network,
) -> Result<Self>
pub fn new_custom( required_signatures: u8, xpubs: Vec<String>, key_labels: Vec<String>, network: Network, ) -> Result<Self>
Create a custom M-of-N configuration
Sourcepub fn type_string(&self) -> String
pub fn type_string(&self) -> String
Get the multisig type string (e.g., “2-of-3”)
Trait Implementations§
Source§impl Clone for MultisigConfig
impl Clone for MultisigConfig
Source§fn clone(&self) -> MultisigConfig
fn clone(&self) -> MultisigConfig
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 moreSource§impl Debug for MultisigConfig
impl Debug for MultisigConfig
Source§impl<'de> Deserialize<'de> for MultisigConfig
impl<'de> Deserialize<'de> for MultisigConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MultisigConfig
impl RefUnwindSafe for MultisigConfig
impl Send for MultisigConfig
impl Sync for MultisigConfig
impl Unpin for MultisigConfig
impl UnwindSafe for MultisigConfig
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