-
Notifications
You must be signed in to change notification settings - Fork 2
Add commitment annex and adjust links to it #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
annexes/commitments.md
Outdated
| `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. |
There was a problem hiding this comment.
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?
Co-authored-by: Nicola Busanello <nicola.busanello@gmail.com>
|
|
||
| ### `CommitId` trait | ||
|
|
||
| This trait is automatically implemented for all types thjat implement `CommitEncode` and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `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 |
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.