pub struct ControlBlock {
pub leaf_version: LeafVer,
pub output_key_parity: Parity,
pub internal_pk: InternalPk,
pub merkle_branch: TapMerklePath,
}
Fields§
§leaf_version: LeafVer
The tapleaf version.
output_key_parity: Parity
The parity of the output key (NOT THE INTERNAL KEY WHICH IS ALWAYS XONLY).
internal_pk: InternalPk
The internal key.
merkle_branch: TapMerklePath
The merkle proof of a script associated with this leaf.
Implementations§
Source§impl ControlBlock
impl ControlBlock
pub fn with( leaf_version: LeafVer, internal_pk: InternalPk, output_key_parity: Parity, merkle_branch: TapMerklePath, ) -> ControlBlock
Trait Implementations§
Source§impl Clone for ControlBlock
impl Clone for ControlBlock
Source§fn clone(&self) -> ControlBlock
fn clone(&self) -> ControlBlock
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ConsensusDecode for ControlBlock
impl ConsensusDecode for ControlBlock
fn consensus_decode( reader: &mut impl Read, ) -> Result<ControlBlock, ConsensusDecodeError>
fn consensus_deserialize( bytes: impl AsRef<[u8]>, ) -> Result<Self, ConsensusDecodeError>
Source§impl ConsensusEncode for ControlBlock
impl ConsensusEncode for ControlBlock
Source§impl Debug for ControlBlock
impl Debug for ControlBlock
Source§impl Hash for ControlBlock
impl Hash for ControlBlock
Source§impl PartialEq for ControlBlock
impl PartialEq for ControlBlock
Source§impl StrictDecode for ControlBlock
impl StrictDecode for ControlBlock
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<ControlBlock, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for ControlBlock
impl StrictDumb for ControlBlock
fn strict_dumb() -> ControlBlock
Source§impl StrictEncode for ControlBlock
impl StrictEncode for ControlBlock
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for ControlBlock
impl StrictStruct for ControlBlock
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for ControlBlock
impl StrictType for ControlBlock
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
impl Eq for ControlBlock
impl StrictProduct for ControlBlock
impl StructuralPartialEq for ControlBlock
Auto Trait Implementations§
impl Freeze for ControlBlock
impl RefUnwindSafe for ControlBlock
impl Send for ControlBlock
impl Sync for ControlBlock
impl Unpin for ControlBlock
impl UnwindSafe for ControlBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.