added the curve key file with all required code