This extension introduces the Data Commitment Interface, which handles the pre-transaction data commitment. It's designed for platforms like Solana, where dynamic data (ie accounts) needs to be known along with the transaction instruction.
Developers can use the IDataCommitment interface to commit data before processing a cross-chain message with the extended IExtendedCrossChainMessaging interface. This can be useful by allowing the extraData field to be modified to contain the data needed for processing, such as public keys and accounts.
// SPDX-License-Identifier: Apache-2.0