def _read_signify_ed25519_signature(signature_file):
 with open(signature_file) as f:
  sig = binascii.a2b_base64(f.read().splitlines()[1])[10:]
  if (len(sig) != 64):
   raise Exception('bogus Ed25519 signature: raw signature length was {}, but expected 64'.format(len(sig)))
  return sig

def _read_signify_ed25519_signature ( signature_file ) : with open ( signature_file ) as f : sig = binascii . a2b_base64 ( f . read ( ) . splitlines ( ) [ 1 ] ) [ 10 : ] if ( len ( sig ) != 64 ) : raise Exception ( 'bogus Ed25519 signature: raw signature length was {}, but expected 64' . format ( len ( sig ) ) ) return sig
read a ed25519 signature file created with openbsd signify .