Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Implement createCCU function for chain connector plugin #7224

Closed
Tracked by #6918
ishantiw opened this issue Jun 17, 2022 · 0 comments · Fixed by #7438
Closed
Tracked by #6918

Implement createCCU function for chain connector plugin #7224

ishantiw opened this issue Jun 17, 2022 · 0 comments · Fixed by #7438

Comments

@ishantiw
Copy link
Contributor

ishantiw commented Jun 17, 2022

Description

Implement createCCU function which the following params,

  • sendingChainId - Config property of the plugin
  • Certificate - returned by getNextCertificateFromAggregateCommits
  • activeValidatorsUpdate: from the getActiveValidatorsDiff Implementation
  • newCertificateThreshold: If the certificateThreshold used to create certificate.validatorsHash is different from the one stored in the chain account, include the new value in the newCertificateThreshold property. By checking the certificateThreshold with the certificateThreshold received from getBFTParameters
  • inboxUpdate: The property inboxUpdate.crossChainMessages lists all CCMs that have been included in the sidechain outbox up to h2 (and which have not been included on the sidechain yet).
    • In this case, the messageWitness will be empty. we can get CCMs from interoperability_getChannel and check the outbox of the receiving chain which is mainchain here.
    • Compute the inclusion proof for the outbox root of the sidechain account into the mainchain state root. This proof is then used to compute inboxUpdate.outboxRootWitness

Acceptance Criteria

  • Should have all the unit tests relevant for the CCU creation

Additional Info

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants