def _read_signify_ed25519_pubkey(pubkey_file):
 with open(pubkey_file) as f:
  pubkey = binascii.a2b_base64(f.read().splitlines()[1])[10:]
  if (len(pubkey) != 32):
   raise Exception('bogus Ed25519 public key: raw key length was {}, but expected 32'.format(len(pubkey)))
  return pubkey

def _read_signify_ed25519_pubkey ( pubkey_file ) : with open ( pubkey_file ) as f : pubkey = binascii . a2b_base64 ( f . read ( ) . splitlines ( ) [ 1 ] ) [ 10 : ] if ( len ( pubkey ) != 32 ) : raise Exception ( 'bogus Ed25519 public key: raw key length was {}, but expected 32' . format ( len ( pubkey ) ) ) return pubkey
read a public key from a ed25519 key pair created with openbsd signify .