Module forest_filecoin::libp2p::keypair

source ·

Constants§

Functions§

  • 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.
  • Returns the libp2p key-pair for the node, generating a new one if it doesn’t exist in the data directory.