fluencelabs / dev-rewards

Apache License 2.0
554 stars 368 forks source link

Exception in proof.py #57

Closed niclash closed 3 months ago

niclash commented 3 months ago

Enter the ethereum address to which you plan to receive the airdrop: 0x7EBA3a72ba4d746299C877B49bC2D327ceBA6E5f Traceback (most recent call last): File "/claim/python/proof.py", line 161, in main() File "/claim/python/proof.py", line 145, in main sshPubKey, sshKeyPath = choose_ssh_key() File "/claim/python/proof.py", line 65, in choose_ssh_key if not is_ssh_key(path): File "/claim/python/proof.py", line 100, in is_ssh_key key = file.read() File "/usr/local/lib/python3.10/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 0: invalid start byte

I suspect it is because files are not expected to be binary in .ssh directory...but then isn't the private keys binary? I removed the is_ssh_check() to get all files to circumvent it.