Skip to main content

compute_task_ref

Function compute_task_ref 

Source
pub fn compute_task_ref(task_id: Uuid) -> B256
Expand description

Derive the bytes32 taskRef that TaskBond.post binds for a given task.

The server verifier expects taskRef = 16 zero bytes concatenated with the task UUID’s 16 raw bytes (gh#95). Kept next to compute_escrow_id because it is the same class of “must byte-match the on-chain/server derivation” helper: drift here silently posts a bond the verifier will never accept.