Function gear_program::keystore::decode_json_file
source · [−]pub fn decode_json_file(
path: impl AsRef<Path>,
passphrase: Option<&str>
) -> Result<PairSigner<GearConfig, Pair>>Expand description
Decode pair from json file.
@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.