Enum ckb_script::ScriptVersion
source · [−]pub enum ScriptVersion {
V0,
V1,
}
Expand description
The version of CKB Script Verifier.
Variants
V0
CKB VM 0 with Syscall version 1.
V1
CKB VM 1 with Syscall version 1 and version 2.
Implementations
Returns the version of CKB VM in current script version.
Returns the specific data script hash type.
Returns:
ScriptHashType::Data
for version 0;ScriptHashType::Data1
for version 1;
Creates a CKB VM core machine without cycles limit.
In fact, there is still a limit of max_cycles
which is set to 2^64-1
.
Creates a CKB VM core machine.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ScriptVersion
impl Send for ScriptVersion
impl Sync for ScriptVersion
impl Unpin for ScriptVersion
impl UnwindSafe for ScriptVersion
Blanket Implementations
Mutably borrows from an owned value. Read more