hopli::key_pair

Function create_identity

Source
pub fn create_identity(
    dir_name: &str,
    password: &str,
    maybe_name: &Option<String>,
) -> Result<(String, HoprKeys), HelperErrors>
Expand description

Create one identity file and return the ethereum address

ยงArguments

  • dir_name - Directory to the storage of an identity file
  • password - Password to encrypt the identity file
  • name - Prefix of identity files.