Esempio n. 1
0
 def __init__(self, netcode, issuing_address, certificates_to_issue,
              connector, signer, batch_metadata, tx_cost_constants):
     Issuer.__init__(self, netcode, issuing_address, certificates_to_issue,
                     connector, signer)
     self.tree = MerkleTree(hash_f=sha256)
     self.batch_id = batch_metadata.batch_id
     self.batch_metadata = batch_metadata
     self.tx_cost_constants = tx_cost_constants
Esempio n. 2
0
 def __init__(self, config, certificates_to_issue):
     Issuer.__init__(self, config, certificates_to_issue)
     self.batch_id = '%024x' % random.randrange(16**24)
     self.tree = MerkleTree(hash_f=sha256)
Esempio n. 3
0
 def __init__(self, config, certificates_to_issue):
     Issuer.__init__(self, config, certificates_to_issue)