#NEWLINE# def __init__( self , private_key , encoder = encoding . RawEncoder ) : #NEWLINE# #INDENT# private_key = encoder . decode ( private_key ) #NEWLINE# if ( not isinstance ( private_key , bytes ) ) : #NEWLINE# #INDENT# raise TypeError ( 'PrivateKey must be created from a 32 byte seed' ) #NEWLINE# #UNINDENT# if ( len ( private_key ) != self . SIZE ) : #NEWLINE# #INDENT# raise ValueError ( ( 'The secret key must be exactly %d bytes long' % self . SIZE ) ) #NEWLINE# #UNINDENT# raw_public_key = nacl . bindings . crypto_scalarmult_base ( private_key ) #NEWLINE# self . _private_key = private_key #NEWLINE# self . public_key = PublicKey ( raw_public_key )