pub struct BlockStatement {
pub transaction_statements: Vec<TransactionStatement>,
pub address_resolution_statements: Vec<AddressResolutionStatement>,
pub mosaic_resolution_statements: Vec<MosaicResolutionStatement>,
}Expand description
ブロックのステートメント。catapult の model::BlockStatement。
Fields§
§transaction_statements: Vec<TransactionStatement>catapult は元の昇順に並べる
address_resolution_statements: Vec<AddressResolutionStatement>catapult は解決する前のアドレスのバイト列の昇順に並べる
mosaic_resolution_statements: Vec<MosaicResolutionStatement>catapult は解決する前の ID の昇順に並べる
Implementations§
Source§impl BlockStatement
impl BlockStatement
Sourcepub fn merkle_hash(&self) -> Hash256
pub fn merkle_hash(&self) -> Hash256
ステートメントから ReceiptsHash を求める。catapult の model::CalculateMerkleHash(const BlockStatement&)。
トランザクション、アドレスの解決、モザイクの解決の順に、それぞれのハッシュを葉にした Merkle の根。
並びはここにあるとおりに使う。ノードから読んだものは、catapult の並べ方になっている。
pub fn to_bytes(&self) -> Vec<u8> ⓘ
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, StatementDecodeError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, StatementDecodeError>
バイト列から読む。catapult の ReadBlockStatement と違い、並べ直したりまとめたりはせず、書いてあるとおりに読む。
Trait Implementations§
Source§impl Clone for BlockStatement
impl Clone for BlockStatement
Source§fn clone(&self) -> BlockStatement
fn clone(&self) -> BlockStatement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockStatement
impl Debug for BlockStatement
Source§impl Default for BlockStatement
impl Default for BlockStatement
Source§fn default() -> BlockStatement
fn default() -> BlockStatement
Returns the “default value” for a type. Read more
impl Eq for BlockStatement
Source§impl PartialEq for BlockStatement
impl PartialEq for BlockStatement
impl StructuralPartialEq for BlockStatement
Auto Trait Implementations§
impl Freeze for BlockStatement
impl RefUnwindSafe for BlockStatement
impl Send for BlockStatement
impl Sync for BlockStatement
impl Unpin for BlockStatement
impl UnsafeUnpin for BlockStatement
impl UnwindSafe for BlockStatement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more