Function gear_program::keystore::generate
source · [−]pub fn generate(passwd: Option<&str>) -> Result<PairSigner<GearConfig, Pair>>Expand description
Generate a new keypair.
@WARNING: THIS WILL ONLY BE SECURE IF THE keystore IS SECURE. when you have NO PASSWORD, If it can be got by an attacker then they can also get your key.