diff --git a/cic/attachment.py b/cic/attachment.py index 436c0d0..e84d3b6 100644 --- a/cic/attachment.py +++ b/cic/attachment.py @@ -52,7 +52,7 @@ class Attachment(Data): f = open(self.contents[k], 'rb') v = f.read() f.close() - logg.debug('writing {}'.format(k)) + logg.debug('writing attachment {}'.format(k)) writer.write(k, v) diff --git a/cic/processor.py b/cic/processor.py index 508576b..acd0b34 100644 --- a/cic/processor.py +++ b/cic/processor.py @@ -33,8 +33,8 @@ class Processor: def process(self, writer=None): tasks = [ - 'proof', 'attachment', + 'proof', 'metadata', ] diff --git a/cic/proof.py b/cic/proof.py index 726aa0c..72e7e5e 100644 --- a/cic/proof.py +++ b/cic/proof.py @@ -102,6 +102,11 @@ class Proof(Data): hshs_bin = list(map(bytes.fromhex, hshs)) hshs_cat = b''.join(hshs_bin) + f = open(self.temp_proof_path, 'rb') + v = f.read() + f.close() + writer.write(hsh, v) + r = self.hash(hshs_cat) r_hex = r.hex()