Skip to content
Snippets Groups Projects
Unverified Commit e75e0eb5 authored by Davide Galassi's avatar Davide Galassi Committed by GitHub
Browse files

Document LocalKeystore insert method (#3336)

Refer to https://github.com/paritytech/polkadot-sdk/issues/3320
discussion
parent 9346019d
No related merge requests found
Pipeline #445715 failed with stages
in 59 minutes and 7 seconds
......@@ -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,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment