pub fn default_external_signer(
mnemonic: String,
passphrase: Option<String>,
network: Network,
key_set_config: Option<KeySetConfig>,
) -> Result<Arc<dyn ExternalSigner>, SdkError>Expand description
Creates a default external signer from a mnemonic.
This is a convenience factory method for creating a signer that can be used
with connect_with_signer or SdkBuilder::new_with_signer.
§Arguments
mnemonic- BIP39 mnemonic phrase (12 or 24 words)passphrase- Optional passphrase for the mnemonicnetwork- Network to use (Mainnet or Regtest)key_set_config- Optional key set configuration. If None, uses default configuration.
§Returns
Result containing the signer as Arc<dyn ExternalSigner>