PR commit for adding support for degree 1 curves

Curves can only be of degree 1 or 3, so I suggest removing the second `if` and replacing it with an assertion:

    ...
    else
    {
        assert(key.get_curve_degree() == 3);
        ...