acir::serialization

Function deserialize_any_format

Source
pub(crate) fn deserialize_any_format<F, T, R>(buf: &[u8]) -> Result<T>
where T: for<'a> Deserialize<'a>, F: AcirField, R: Message + Default, ProtoSchema<F>: ProtoCodec<T, R>,
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.