Enum ckb_jsonrpc_types::ScriptHashType
source · [−]pub enum ScriptHashType {
Data,
Type,
Data1,
}
Expand description
Specifies how the script code_hash
is used to match the script code and how to run the code.
Allowed kinds: “data”, “type” and “data1”.
Refer to the section Code Locating and Upgradable Script in the RFC CKB Transaction Structure.
Variants
Data
Type “data” matches script code via cell data hash, and run the script code in v0 CKB VM.
Type
Type “type” matches script code via cell type script hash.
Data1
Type “data” matches script code via cell data hash, and run the script code in v1 CKB VM.
Trait Implementations
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
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ScriptHashType
impl Send for ScriptHashType
impl Sync for ScriptHashType
impl Unpin for ScriptHashType
impl UnwindSafe for ScriptHashType
Blanket Implementations
Mutably borrows from an owned value. Read more