Closed Erigara closed 1 month ago
I agree here
payload.header
if it derives payload.commit_topology
and payload.event_recommendations
payload.header.transactions_hash
). I don't think block signatures are relevantAh, I guess what you see as a problem is HashOf<SignedBlock>
implementation. If so, yeah, this would be a problem when that approach is required since light clients would store at most block headers of the other chain
Yeah, it also the case that hash of block is not the same across block's lifetime
It sounds natural to me that a block hash is transient until it become CommittedBlock
. It would not matter unless hash is used as an identifier
In the logs i've encountered cases where there is message that block was created (one hash) and than block committed (another hash). This makes debugging less convenient. Also imo it's natural to treat block hash as some kind of identifier.
If the problem is that a block hash is affected by the aggregating signatures, wouldn't it be enough to change the logging implementation to refer to hash_of_payload
?
Look like we sign over whole block not just header. I see few problems with that:
I will create a ticket for discussion.
_Originally posted by @Erigara in https://github.com/hyperledger/iroha/pull/4518#discussion_r1611265234_