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
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)
def __init__(self, config, certificates_to_issue): Issuer.__init__(self, config, certificates_to_issue)