#NEWLINE# def __init__( self , public_key_string , version_byte = None , verify = True ) : #NEWLINE# #INDENT# ' Takes in a public key in hex format.\n        ' #NEWLINE# if version_byte : #NEWLINE# #INDENT# self . _version_byte = version_byte #NEWLINE# #UNINDENT# ( self . _charencoding , self . _type ) = get_public_key_format ( public_key_string ) #NEWLINE# self . _bin_public_key = extract_bin_bitcoin_pubkey ( public_key_string ) #NEWLINE# bin_ecdsa_public_key = extract_bin_ecdsa_pubkey ( public_key_string ) #NEWLINE# if verify : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . _ecdsa_public_key = VerifyingKey . from_string ( version_byte , self . _curve ) #NEWLINE# #UNINDENT# except AssertionError as e : #NEWLINE# #INDENT# raise ValueError ( _errors [ 'IMPROPER_PUBLIC_KEY_FORMAT' ] )