https://tlverifier.readthedocs.io/en/latest/
pip install --extra-index-url https://test.pypi.org/simple/ tlverifier
pip install --extra-index-url https://test.pypi.org/simple/ tlverifier==x.y.z
libs required: pymerkle-logsTransparentes~=0.0.3 [https://pypi.org/project/pymerkle-logsTransparentes/]
- verify_inclusion_proof
- verify_consistency_proof
- verify_data_entry
- verify_local_tree_history_consistency
- verify_global_tree_history_consistency
- proof: dictionary
- root: string
- data: bytes
- return: dictionary
- {"success": True}
- {"success": False, "exception": InvalidProof}
- {"success": False, "exception": InvalidChallenge}
- {"success": False, "exception": Other}
- first_root: bytes
- second_root: bytes
- proof: MerkleProof (pymerkle_logsTransparentes.proof.MerkleProof)
- return: dictionary
- {"success": True}
- {"success": False, "exception": InvalidProof}
- {"success": False, "exception": InvalidChallenge}
- {"success": False, "exception": Other}
- proof: dictionary
- global_root: string
- data: bytes
- return: dictionary
- {"success": True}
- {"success": False, "exception": inclusion_proof_local}
- {"success": False, "exception": inclusion_proof_global}
verify_local_tree_history_consistency(global_tree_data, consistency_proofs, trusted_global_root, tree_name)
- global_tree_data: dictionary
- consistency_proofs: dictionary
- trusted_global_root: string
- tree_name: string
- return: dictionary
- {"success": True}
- {"success": False, "exception": "Global roots don't match"}
- {"success": False, "exception": "Global tree data and Consistency proofs do not match"}
- {"success": False, "exception": "Consistency proof is false"}
- consistency_proofs: dictionary
- trusted_global_root: dictionary
- return: dictionary
- {"success": True}
- {"success": False, "exception": "Consistency proof is false"}