Function forest_filecoin::libp2p::keypair::create_and_save_keypair

source ยท
fn create_and_save_keypair(path: &Path) -> Result<Keypair>
Expand description

Creates and saves a new ED25519 key-pair to the given path. If an older key-pair exists, it will be backed-up. Returns the generated key-pair.