Skip to main content

decode_legacy_tree_v1

Function decode_legacy_tree_v1 

Source
pub fn decode_legacy_tree_v1(data: &[u8]) -> Result<Tree>
Expand description

Decode the removed V1 tree schema.

This intentionally lives outside Tree’s Deserialize impl: normal runtime readers accept only the current versioned tree envelope, while migrations may call this one-shot decoder and immediately rewrite a V2 tree body at the same semantic tree hash.