Skip to main content

BINDING_VERSION

Constant BINDING_VERSION 

Source
pub const BINDING_VERSION: u64 = 2; // 2u64
Expand description

The binding version, the first array element. Q5’s escape hatch: a future binding scheme gets a new number instead of a new wire format.

Version 1 froze in 0.15.0, the first release with both wire peers: the server layer (cratestack#1006) and the Rust client (cratestack#1007). Version 2 (cratestack#1123) binds the per-op contract_sha where version 1 bound the whole-IR schema_sha. From 0.15.0 on, any change to the elements or to how one is derived bumps this number, and verifiers reject versions they do not accept: a version 2 verifier accepts only 2 (ADR 0006 §4).