Docs.rs
ckb-script-0.119.0
ckb-script 0.119.0
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
doitian
Dependencies
byteorder ^1.3.1
normal
ckb-chain-spec =0.119.0
normal
ckb-error =0.119.0
normal
ckb-hash =0.119.0
normal
ckb-logger =0.119.0
normal
optional
ckb-traits =0.119.0
normal
ckb-types =0.119.0
normal
ckb-vm =0.24.12
normal
faster-hex ^0.6
normal
serde ^1.0
normal
tokio ^1.35.0
normal
Versions
100%
of the crate is documented
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
ckb_
script
0.119.0
Module cost_
model
Module Items
Constants
Functions
In crate ckb_
script
ckb_script
Module
cost_model
Copy item path
Source
Expand description
CKB VM cost model.
The cost model assign cycles to instructions.
Constants
§
BYTES_
PER_
CYCLE
How many bytes can transfer when VM costs one cycle.
Functions
§
transferred_
byte_
cycles
Calculates how many cycles spent to load the specified number of bytes.