Skip to main content

4.5. Retrieve Merkle Audit Proof from Log by Leaf Hash

4.5. Retrieve Merkle Audit Proof from Log by Leaf Hash

GET https://<log server>/ct/v1/get-proof-by-hash

Inputs:

  • hash: A base64-encoded v1 leaf hash.

  • tree_size: The tree_size of the tree on which to base the proof, in decimal.

The "hash" must be calculated as defined in Section 3.4. The "tree_size" must designate an existing v1 STH.

Outputs:

  • leaf_index: The 0-based index of the end entity corresponding to the "hash" parameter.

  • audit_path: An array of base64-encoded Merkle Tree nodes proving the inclusion of the chosen certificate.