acir::serialization

Function deserialize_any_format

Source
pub(crate) fn deserialize_any_format<T>(buf: &[u8]) -> Result<T>
where T: for<'a> Deserialize<'a>,
Expand description

Deserialize any of the supported formats. Try go guess the format based on the first byte, but fall back to the legacy bincode format if anything fails.