Lines Matching refs:tree_size
200 def root_from_icp(leaf_index, tree_size, proof, leaf_hash): argument
217 if tree_size < 0:
218 raise AftlError('Invalid tree_size value: {}'.format(tree_size))
219 if leaf_index >= tree_size:
221 raise AftlError(err_str.format(leaf_index, tree_size))
228 inner = (leaf_index ^ (tree_size - 1)).bit_length()
497 self.log_root_descriptor.tree_size,
669 (self.version, self.tree_size, self.root_hash_size) = struct.unpack(
693 self.tree_size = 0
732 self.version, self.tree_size, self.root_hash_size,
746 if self.tree_size < 0:
748 self.tree_size))
788 o.write(fmt.format(i, 'Tree size:', self.tree_size))