Change sighash enum to typedef (for use in sx).