Consensys / gpact

General Purpose Atomic Crosschain Transaction Protocol
Apache License 2.0
83 stars 26 forks source link

GPACT v1: Segment Events need to contain root blockchain id #149

Closed drinkcoffee closed 2 years ago

drinkcoffee commented 2 years ago

Segment events are shown to be related to a Start Event, and a root blockchain by the Crosschain Transaction Id and the Call Tree Hash. Root events only contain the Crosschain Transaction Id (and success / fail). The root blockchain id can be inferred by which chain emitted the Root event.

However, in the signalling function, there is no way to check that the root blockchain is the correct one.

The segment event should emit its understand of the root blockchain id, which can then be checked in the signalling function.

drinkcoffee commented 2 years ago

This issue applies to GPACT v2 as well. As the V1 and V2 Segment events are identical, the Java SDK processing is common code. As such, this issue needs to be resolved simultaneously for GPACT v1 and V2.

drinkcoffee commented 2 years ago

Issue resolved by merged PR