Bugfix: secret_to_wif now works correctly for compressed keys.