mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 08:51:09 +00:00
Document LocalKeystore insert method (#3336)
Refer to https://github.com/paritytech/polkadot-sdk/issues/3320 discussion
This commit is contained in:
@@ -143,6 +143,13 @@ impl LocalKeystore {
|
||||
}
|
||||
|
||||
impl Keystore for LocalKeystore {
|
||||
/// Insert a new secret key.
|
||||
///
|
||||
/// WARNING: if the secret keypair has been manually generated using a password
|
||||
/// (e.g. using methods such as [`sp_core::crypto::Pair::from_phrase`]) then such
|
||||
/// a password must match the one used to open the keystore via [`LocalKeystore::open`].
|
||||
/// If the passwords doesn't match then the inserted key ends up being unusable under
|
||||
/// the current keystore instance.
|
||||
fn insert(
|
||||
&self,
|
||||
key_type: KeyTypeId,
|
||||
|
||||
Reference in New Issue
Block a user