Function forest_filecoin::libp2p::keypair::get_or_create_keypair

source ·
pub fn get_or_create_keypair(data_dir: &Path) -> Result<Keypair>
Expand description

Returns the libp2p key-pair for the node, generating a new one if it doesn’t exist in the data directory.