Struct subcoin_script::ScriptExecutionData
source · pub struct ScriptExecutionData {
pub tapleaf_hash_init: bool,
pub tapleaf_hash: TapLeafHash,
pub codeseparator_pos_init: bool,
pub codeseparator_pos: u32,
pub annex_init: bool,
pub annex_present: bool,
pub annex_hash: H256,
pub annex: Option<Vec<u8>>,
pub validation_weight_left_init: bool,
pub validation_weight_left: i64,
pub output_hash: Option<H256>,
}
Fields§
§tapleaf_hash_init: bool
Whether m_tapleaf_hash is initialized
tapleaf_hash: TapLeafHash
The tapleaf hash
codeseparator_pos_init: bool
Whether m_codeseparator_pos is initialized
codeseparator_pos: u32
Opcode position of the last executed OP_CODESEPARATOR (or 0xFFFFFFFF if none executed)
annex_init: bool
Whether m_annex_present and m_annex_hash are initialized
annex_present: bool
Whether an annex is present
annex_hash: H256
Hash of the annex data
annex: Option<Vec<u8>>
Annex data.
We store the annex data for signature_checker.
validation_weight_left_init: bool
Whether m_validation_weight_left is initialized
validation_weight_left: i64
How much validation weight is left (decremented for every successful non-empty signature check)
output_hash: Option<H256>
The hash of the corresponding output
Trait Implementations§
source§impl Debug for ScriptExecutionData
impl Debug for ScriptExecutionData
Auto Trait Implementations§
impl Freeze for ScriptExecutionData
impl RefUnwindSafe for ScriptExecutionData
impl Send for ScriptExecutionData
impl Sync for ScriptExecutionData
impl Unpin for ScriptExecutionData
impl UnwindSafe for ScriptExecutionData
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