You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Implement createCCU function which the following params,
sendingChainId - Config property of the plugin
Certificate - returned by getNextCertificateFromAggregateCommits
activeValidatorsUpdate: from the getActiveValidatorsDiffImplementation
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
Description
Implement
createCCU
function which the following params,sendingChainId
- Config property of the pluginCertificate
- returned bygetNextCertificateFromAggregateCommits
activeValidatorsUpdate
: from thegetActiveValidatorsDiff
ImplementationnewCertificateThreshold
: 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 thecertificateThreshold
received fromgetBFTParameters
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).messageWitness
will be empty. we can get CCMs frominteroperability_getChannel
and check the outbox of the receiving chain which is mainchain here.inboxUpdate.outboxRootWitness
Acceptance Criteria
Additional Info
The text was updated successfully, but these errors were encountered: