-
Notifications
You must be signed in to change notification settings - Fork 14
Conversation
adlerjohn
commented
Apr 1, 2020
•
edited
Loading
edited
- evidence root
- validators/state roots
@liamsi Refactored the header to remove validator roots (both), and added a |
Still need to go through the tendermint changes required for this (celestiaorg/celestia-core#3) but independent of that this seems reasonable. Question: Is |
Yes, my understanding is that only a single hash function is used everywhere (keccak-256). |
Do we need to prefix the |
I don't think we need to prefix it with anything, since it's a fixed operation. But it wouldn't hurt to just prefix it, that way it might be easier to parse, as it can be interpreted as the parent node of two potentially-asymmetric subtrees. |
Didn't we settle on including messages inside of Tx? |
I don't think so? Txs that pay fees for a message to be included (not all txs do this, some just e.g. change the validator set) shouldn't include the binary data as part of the tx itself, otherwise some client profiles would have to fully download messages even if they don't care about them. For example, if I only care about the LazyLedger validator set, I can just ignore the entire message namespace. Txs should only include a commitment to a message. |
I misunderstood the outcome of this discussion then: #2 (comment) I thought it might be simple if we have a single Tx type This is kinda orthogonal to this PR. We can continue the discussion in a separate issue. If I want to include a Msg, what do I do / what happens (and if sending Tx{commitToMsg} and Message, is two operations couldn't I spam the network with unsigned messages that do not have a corresponding Tx)? |
Transactions can certainly be sent around the network as The point of splitting up txs and msgs inside the block is that there can be users that want to ensure the integrity of the LazyLedger coin and make sure that the message data is available, but they don't care what the message data actually is. |
Makes perfect sense inside the block! I was looking from an encoded on / decoded from the wire perspective I guess. |
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.
LGTM 👍