diff options
| author | josef <josef.gson@gmail.com> | 2015-12-08 09:36:50 +0100 |
|---|---|---|
| committer | josef <josef.gson@gmail.com> | 2015-12-08 09:36:50 +0100 |
| commit | 1707bbafaa6de30ddf19e94d5bc983ad0b3c7d5a (patch) | |
| tree | 74899d1923dae04907750ad8a3e30fd1cf5fd5fb /monitor/josef_monitor.py | |
| parent | 1afee9c20c13ff5f317334d6649e84f4240d1926 (diff) | |
testing emailing
Diffstat (limited to 'monitor/josef_monitor.py')
| -rwxr-xr-x | monitor/josef_monitor.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/monitor/josef_monitor.py b/monitor/josef_monitor.py index 2a33ef0..e6d8962 100755 --- a/monitor/josef_monitor.py +++ b/monitor/josef_monitor.py @@ -294,8 +294,9 @@ class ctlog: decoded_consistency_proof = [] for item in consistency_proof: decoded_consistency_proof.append(base64.b64decode(item)) - res = verify_consistency_proof(decoded_consistency_proof, old["tree_size"], new["tree_size"], old["sha256_root_hash"]) - + # res = verify_consistency_proof(decoded_consistency_proof, old["tree_size"], new["tree_size"], old["sha256_root_hash"]) + res = verify_consistency_proof(decoded_consistency_proof, old["tree_size"], new["tree_size"], base64.b64decode(old["sha256_root_hash"])) + if old["sha256_root_hash"] != str(base64.b64encode(res[0])): self.log(ERROR_STR + "Verification of consistency for old hash failed! Old:" \ + str(old) + " New:" + str(new) + " Proof:" + str(consistency_proof)) |
