pub fn create_keystore_signer(
path: &PathBuf,
maybe_password: Option<&str>,
maybe_password_file: Option<&str>,
) -> Result<(Option<WalletSigner>, Option<PendingSigner>)>
Expand description
Creates keystore signer from given parameters.
If correct password or password file is provided, the keystore is decrypted and a WalletSigner is returned.
Otherwise, a PendingSigner is returned, which can be used to unlock the keystore later, prompting user for password.