Browse Source

remove test code

master
R4SAS 3 years ago
parent
commit
7947f42598
  1. 7
      pyseeder/su3file.py

7
pyseeder/su3file.py

@ -49,14 +49,7 @@ class SU3File:
self.OUTPUT += self.SIGNER_ID.encode("utf-8") self.OUTPUT += self.SIGNER_ID.encode("utf-8")
self.OUTPUT += self.CONTENT self.OUTPUT += self.CONTENT
with open(filename + "-data", "wb") as f:
f.write(self.OUTPUT)
signature = pyseeder.crypto.get_signature(self.OUTPUT, priv_key, priv_key_password) signature = pyseeder.crypto.get_signature(self.OUTPUT, priv_key, priv_key_password)
with open(filename + "-sig", "wb") as f:
f.write(signature)
self.OUTPUT += signature self.OUTPUT += signature
with open(filename, "wb") as f: with open(filename, "wb") as f:

Loading…
Cancel
Save