[][src]Function libra_management::read_key_from_file

pub fn read_key_from_file(path: &PathBuf) -> Result<Ed25519PublicKey, String>

Reads a given ed25519 public key from file. Attempts to read the key using lcs encoding first. If this fails, attempts reading the key using hex.