Bugfix: wif_to_secret now works correctly for compressed keys.
If a program imports a wif using this method then it should check the compressed flag itself and call elliptic_curve_key::set_secret with compressed flag set to false if compression is not used.