def import_ed25519_publickey_from_file(filepath):
<EOL>securesystemslib.formats.PATH_SCHEMA.check_match(filepath)<EOL>ed25519_key_metadata = securesystemslib.util.load_json_file(filepath)<EOL>ed25519_key, junk =securesystemslib.keys.format_metadata_to_key(ed25519_key_metadata)<EOL>if ed25519_key['<STR_LIT>'] != '<STR_LIT>': <EOL><INDENT>message = '<STR_LIT>' + repr(ed25519_key['<STR_LIT>'])<EOL>raise securesystemslib.exceptions.FormatError(message)<EOL><DEDENT>return ed25519_key<EOL>
<Purpose>
  Load the ED25519 public key object (conformant to
  'securesystemslib.formats.KEY_SCHEMA') stored in 'filepath'.  Return
  'filepath' in securesystemslib.formats.ED25519KEY_SCHEMA format.

  If the key object in 'filepath' contains a private key, it is discarded.

<Arguments>
  filepath:
    <filepath>.pub file, a public key file.

<Exceptions>
  securesystemslib.exceptions.FormatError, if 'filepath' is improperly
  formatted or is an unexpected key type.

<Side Effects>
  The contents of 'filepath' is read and saved.

<Returns>
  An ED25519 key object conformant to
  'securesystemslib.formats.ED25519KEY_SCHEMA'.