pub trait MessageProofData {
// Required methods
fn block(&self, id: &BlockHeight) -> StorageResult<CompressedBlock>;
fn transaction_status(
&self,
transaction_id: &TxId,
) -> StorageResult<TransactionStatus>;
fn block_history_proof(
&self,
message_block_height: &BlockHeight,
commit_block_height: &BlockHeight,
) -> StorageResult<MerkleProof>;
}
Expand description
Trait that specifies all the data required by the output message query.
Required Methods§
Sourcefn block(&self, id: &BlockHeight) -> StorageResult<CompressedBlock>
fn block(&self, id: &BlockHeight) -> StorageResult<CompressedBlock>
Get the block.
Sourcefn transaction_status(
&self,
transaction_id: &TxId,
) -> StorageResult<TransactionStatus>
fn transaction_status( &self, transaction_id: &TxId, ) -> StorageResult<TransactionStatus>
Get the status of a transaction.
Sourcefn block_history_proof(
&self,
message_block_height: &BlockHeight,
commit_block_height: &BlockHeight,
) -> StorageResult<MerkleProof>
fn block_history_proof( &self, message_block_height: &BlockHeight, commit_block_height: &BlockHeight, ) -> StorageResult<MerkleProof>
Gets the MerkleProof
for the message block at message_block_height
height
relatively to the commit block where message block <= commit block.