Skip to content

Commit

Permalink
Add note on how the output id proof can be used
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Oct 25, 2023
1 parent 2198aa5 commit deb7a35
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tips/TIP-0045/tip-0045.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ to a Block Issuance Credits account.
A [merkle tree](https://en.wikipedia.org/wiki/Merkle_tree) is a tree data structure that allows for efficient proofs of
inclusion.

A merkle tree proof is serialized as one of two possible schemas: A tree node or the hash of the
value for which the proof is computed. A `Leaf Hash` schema is additionally used in tree nodes, but cannot be at the top-level of a proof.
A merkle tree proof is serialized as one of two possible schemas: A tree node or the hash of the value for which the
proof is computed. A `Leaf Hash` schema is additionally used in tree nodes, but cannot be at the top-level of a proof.

### Node

Expand Down Expand Up @@ -718,6 +718,10 @@ A proof is serialized as follows:
</tr>
</table>

By computing the [merkle root](#root-computation) from the `Output Commitment Proof` the
[Transaction ID](#transaction-id) and Output ID can be reconstructed, using the other fields of the proof. The
`Output ID Proof` can thus be used to prove that a given Output ID was derived from a given Output.

### Transaction ID

A Transaction ID consists of two commitments, the _Transaction Commitment_ and the _Ouptut Commitment_. It is a
Expand Down

0 comments on commit deb7a35

Please sign in to comment.