pub struct EncryptwalletParams {
pub passphrase: String,
}Expand description
Encrypts the wallet with ‘passphrase’. This is for first time encryption. After this, any calls that interact with private keys such as sending or signing will require the passphrase to be set prior to making these calls. Use the walletpassphrase call for this, and then walletlock call. If the wallet is already encrypted, use the walletpassphrasechange call. ** IMPORTANT ** For security reasons, the encryption process will generate a new HD seed, resulting in the creation of a fresh set of active descriptors. Therefore, it is crucial to securely back up the newly generated wallet file using the backupwallet RPC.
Fields§
§passphrase: StringThe pass phrase to encrypt the wallet with. It must be at least 1 character, but should be long.
Trait Implementations§
Source§impl Debug for EncryptwalletParams
impl Debug for EncryptwalletParams
Auto Trait Implementations§
impl Freeze for EncryptwalletParams
impl RefUnwindSafe for EncryptwalletParams
impl Send for EncryptwalletParams
impl Sync for EncryptwalletParams
impl Unpin for EncryptwalletParams
impl UnwindSafe for EncryptwalletParams
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