Skip to content

Conversation

@St333p
Copy link
Contributor

@St333p St333p commented Nov 25, 2025

This PR introduces an annex that describes into more details how commitments are derived. It is a slight adaptation of the document at https://github.com/rgb-protocol/rgb-consensus/blob/0.11.1-rc.1/doc/Commitments.md. There already were many links to it throughout the docs, which were updated accordingly.

It also provides a glossary entry for Merkle Tree, which is referenced by the newly added annex.

@St333p St333p changed the title dd commitment annex and adjust links to it Add commitment annex and adjust links to it Nov 25, 2025
Comment on lines 185 to 192
`OpCommitment` consists of a sub-commitments to blocks of the
operation data, where each sub-commitment is created with a custom procedure.
For instance, operation global state, inputs and assignments are merklized,
such that a succinct proofs of some specific state or input inclusion in RGB
operation can be produced and used in smart contracts. Additionally to that,
assignments are concealed before the merklization, and range proofs are
removed from the commitment, such that an aggregation of the historical proofs
can be applied without changing the operation ids.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feels odd, can we rephrase it to make it easier to understand?

St333p and others added 2 commits December 2, 2025 19:01
Co-authored-by: Nicola Busanello <nicola.busanello@gmail.com>

### `CommitId` trait

This trait is automatically implemented for all types thjat implement `CommitEncode` and
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This trait is automatically implemented for all types thjat implement `CommitEncode` and
This trait is automatically implemented for all types that implement `CommitEncode` and

`Transition` types through a dedicated `OpCommitment` structure that is then
strict-serialized and hashed.

`OpCommitment` consists in a set of commitments to blocks of the operation data, each
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`OpCommitment` consists in a set of commitments to blocks of the operation data, each
`OpCommitment` consists of a set of commitments to blocks of the operation data, each

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants