-
Notifications
You must be signed in to change notification settings - Fork 38
Change commitment payload to make it possible to easily add new items in the future. #198
Comments
Regarding MMB Alfonso from W3F is the main contact in case w start implementing this :) |
I think a fixed position saves on unnecessary bytes. should i go ahead and implement this? |
I'm thinking that the solution with We could maybe use 2-byte id instead though, cause 4-bytes seems like an overkill. |
closed? |
Closed via paritytech/substrate#10307 |
Currently we sign on MMR root only. In the future we know that there will most likely be MMB (Merkle Mountain Belt) implementation coming, or potentially MMR with different hash usage (non-keccak).
It would be nice if we could keep adding things to the commitment without breaking compatibility with older applications.
We could consider encoding something like:
And additionally we should enforce the payload to be sorted by
id
so that it's easy to find the payload one cares about.Alternatively it can just be a list with fixed ordering (i.e. MMR payload always expected at position
0
).The text was updated successfully, but these errors were encountered: