Struct ckb_verification::ScriptVerifyState[][src]

pub struct ScriptVerifyState<'a> {
    pub current: (ScriptGroupType, Byte32),
    pub remain: Vec<(ScriptGroupType, Byte32), Global>,
    pub vm: ResumableMachine<'a>,
    pub current_cycles: u64,
    pub limit_cycles: u64,
}
Expand description

Struct specifies which script has verified so far. State lifetime bound with vm machine.

Fields

current: (ScriptGroupType, Byte32)

current suspended script

remain: Vec<(ScriptGroupType, Byte32), Global>

remain script groups to verify

vm: ResumableMachine<'a>

vm state

current_cycles: u64

current consumed cycle

limit_cycles: u64

limit cycles

Implementations

Return next limit cycles according to max_cycles and step_cycles

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.