0chain / 0chain

Züs (formerly 0Chain) is a decentralized blockchain-based storage platform with no vendor lock-in and a 3-layer security - fragmentation, proxy re-encryption, and immutability. It has close to wire speed data performance, free reads, and is ideal for apps as well as backups, AI data, disaster recovery.
https://zus.network
Other
115 stars 51 forks source link

Include emitted events into Block hash. #756

Closed Sriep closed 2 years ago

Sriep commented 2 years ago

In order to ensure all modules emit the same events, we should add the emitted events to the block hash.

Currently, we emit events in computeStateLocal. We should look for the best place to emit events so that no further block events are added.

Transaction Hash and index should uniquely identify an event so we can hash this for each event, combined in a predefined order to give the event block hash.

Block.getHashData can then be modified to include this block events hash.

We will need to make changes to goSDK to mirror the change to 0chains block hash.

ma2b0043 commented 2 years ago

@Sriep when can we expect to close this issue?

ma2b0043 commented 2 years ago

@Sriep when can we expect to close this issue?

Sriep commented 2 years ago

To replace with an integrated plan for coordinating the events database.