icon-project / centralized-relay

Fault tolerant Relayer.
Apache License 2.0
6 stars 4 forks source link

Implement aggregation contract #379

Closed bcsainju closed 2 months ago

bcsainju commented 2 months ago

The aggregation contract should be developed and deployed in the icon blockchain.

Its high level functioning will be as:

The current assumptions from relayer side are as:

Methods:

// register Packets
registerPacket(byte[] data, BigInteger SN, BigInteger height, String source,String destination,String connAddr)

//acknowlede packet
acknowledgePacket(String source,BigInteger SN,byte[] signedBytes)

//retrieve signature for a packet
byte[][] getSignature(String source,BigInteger SN)

Events:

PacketAcknowledged(BigInteger SN, String source, BigInteger height,byte[] data,String destination)

TransactionReadyToExecute(String destination,BigInteger SN,byte[] data,String source,String connAddr)
bcsainju commented 2 months ago

will be handled in xcall repo