Output proof hash/content to writer
This commit is contained in:
parent
33c0dac678
commit
95483d4c79
@ -52,7 +52,7 @@ class Attachment(Data):
|
|||||||
f = open(self.contents[k], 'rb')
|
f = open(self.contents[k], 'rb')
|
||||||
v = f.read()
|
v = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
logg.debug('writing {}'.format(k))
|
logg.debug('writing attachment {}'.format(k))
|
||||||
writer.write(k, v)
|
writer.write(k, v)
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,8 +33,8 @@ class Processor:
|
|||||||
def process(self, writer=None):
|
def process(self, writer=None):
|
||||||
|
|
||||||
tasks = [
|
tasks = [
|
||||||
'proof',
|
|
||||||
'attachment',
|
'attachment',
|
||||||
|
'proof',
|
||||||
'metadata',
|
'metadata',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -102,6 +102,11 @@ class Proof(Data):
|
|||||||
hshs_bin = list(map(bytes.fromhex, hshs))
|
hshs_bin = list(map(bytes.fromhex, hshs))
|
||||||
hshs_cat = b''.join(hshs_bin)
|
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 = self.hash(hshs_cat)
|
||||||
r_hex = r.hex()
|
r_hex = r.hex()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user