pub struct MTNode {
pub left: BLSScalar,
pub mid: BLSScalar,
pub right: BLSScalar,
pub is_left_child: u8,
pub is_mid_child: u8,
pub is_right_child: u8,
}Expand description
A Merkle tree node.
Fields§
§left: BLSScalarThe left child of its parent in a three-ary tree.
mid: BLSScalarThe mid child of its parent in a three-ary tree.
right: BLSScalarThe right child of its parent in a three-ary tree.
is_left_child: u8Whether this node is the left child of the parent.
is_mid_child: u8Whether this node is the mid child of the parent.
is_right_child: u8Whether this node is the right child of the parent.
Trait Implementations§
source§impl<'de> Deserialize<'de> for MTNode
impl<'de> Deserialize<'de> for MTNode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromWasmAbi for MTNode
impl FromWasmAbi for MTNode
source§impl IntoWasmAbi for MTNode
impl IntoWasmAbi for MTNode
source§impl OptionFromWasmAbi for MTNode
impl OptionFromWasmAbi for MTNode
source§impl OptionIntoWasmAbi for MTNode
impl OptionIntoWasmAbi for MTNode
source§impl PartialEq<MTNode> for MTNode
impl PartialEq<MTNode> for MTNode
source§impl RefFromWasmAbi for MTNode
impl RefFromWasmAbi for MTNode
source§impl RefMutFromWasmAbi for MTNode
impl RefMutFromWasmAbi for MTNode
impl StructuralPartialEq for MTNode
Auto Trait Implementations§
impl RefUnwindSafe for MTNode
impl Send for MTNode
impl Sync for MTNode
impl Unpin for MTNode
impl UnwindSafe for MTNode
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.