Module ckb_script::cost_model
source · Expand description
CKB VM cost model.
The cost model assign cycles to instructions.
Constants
How many bytes can transfer when VM costs one cycle.
Functions
Returns the spent cycles to execute the secific instruction.
Calculates how many cycles spent to load the specified number of bytes.