COMPUTE_BUDGET_MAX
HardKAS SDK / sdk/src / COMPUTE_BUDGET_MAX
Variable: COMPUTE_BUDGET_MAX
constCOMPUTE_BUDGET_MAX:65535=65535
Defined in: packages/sdk/src/zk/toccata.ts:55
Consensus / mempool constants, cross-checked against rusty-kaspa 2.1.0
(crypto/txscript/src/zk_precompiles/tags.rs, consensus/core/src/mass/mod.rs) and the
Toccata Script Pricing page:
allowed script units per input = compute_budget * 10_000 + 9_999
1 compute_budget unit = 100 grams of compute mass = 10_000 script units
Groth16 precompile (tag 0x20) = 140_000 grams = 14_000_000 script units (+ pushes)
compute mass = tx bytes + 10 * script-public-key bytes + 100 * sum(compute_budget)