(self, private_key=None)
Takes in a private key/secret exponent.
Takes in a private key/secret exponent.
Takes in a private key / secret exponent .
def __init__(self, private_key=None):
        """ Takes in a private key/secret exponent.
        """
        if private_key:
            secret_exponent = extract_pk_as_int(private_key, self._curve.order)
        else:
            secret_exponent = random_secret_exponent(self._curve.order)
        
        self._ecdsa_private_key = ecdsa.keys.SigningKey.from_secret_exponent(
            secret_exponent, self._curve, self._hash_function
        )
        self._ecdsa_public_key = self._ecdsa_private_key.get_verifying_key()
def __init__ ( self , private_key = None ) : if private_key : secret_exponent = extract_pk_as_int ( private_key , self . _curve . order ) else : secret_exponent = random_secret_exponent ( self . _curve . order ) self . _ecdsa_private_key = ecdsa . keys . SigningKey . from_secret_exponent ( secret_exponent , self . _curve , self . _hash_function ) self . _ecdsa_public_key = self . _ecdsa_private_key . get_verifying_key ( )