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.
Add message recovery command verification to mainchain interoperability module.
if terminatedOutboxAccount(trs.params.chainID) does not exist:
return False
# Check that the CCMs are still pending
for index in trs.params.idxs:
if index < terminatedOutboxAccount(trs.params.chainID).partnerChainInboxSize:
return False
# Check the validity of the CCMs to be recovered
for ccm in deserializedCCMs:
if ccm.status != CCM_STATUS_OK:
return False
# Check the inclusion proof against the sidechain outbox root
proof = { size: terminatedOutboxAccount(trs.params.chainID).outboxSize,
idxs: trs.params.idxs,
siblingHashes: trs.params.siblingHashes}
return RMTVerify(
[SHA-256(ccmData) for ccmData in trs.params.crossChainMessages],
proof,
terminatedOutboxAccount(trs.params.chainID).outboxRoot
)
Acceptance Criteria
Add unit tests for message recovery
The text was updated successfully, but these errors were encountered:
Description
Add message recovery command verification to mainchain interoperability module.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: