Struct ex3_node_types::block::BlockBody
source · pub struct BlockBody {
pub txs: Vec<EncodedTransaction>,
pub balances_changed: Vec<(WalletRegisterId, Vec<(AssetId, AmountChange)>)>,
}Fields§
§txs: Vec<EncodedTransaction>§balances_changed: Vec<(WalletRegisterId, Vec<(AssetId, AmountChange)>)>Implementations§
source§impl BlockBody
impl BlockBody
pub fn encode(&self) -> Vec<u8> ⓘ
pub fn tx_merkle_root(&self) -> MerkleRoot
pub fn build_tx_merkle_tree(&self) -> MerkleTree<Sha256>
pub fn balances_changed_merkle_root(&self) -> MerkleRoot
pub fn build_balances_changed_merkle_tree(&self) -> MerkleTree<Sha256>
Trait Implementations§
source§impl From<BlockBody> for EncodedBlockBody
impl From<BlockBody> for EncodedBlockBody
source§impl From<EncodedBlockBody> for BlockBody
impl From<EncodedBlockBody> for BlockBody
source§fn from(encoded_body: EncodedBlockBody) -> Self
fn from(encoded_body: EncodedBlockBody) -> Self
Converts to this type from the input type.