pub fn block_from_wire_bytes(bytes: &[u8]) -> Result<L2Block, BlockStoreError>Expand description
Deserialize wire bytes from a peer into L2Block (SER-003).
Pipeline: Streamable::from_bytes — rejects trailing garbage.
Important: Uses explicit UFCS (<L2Block as Streamable>::from_bytes) because
dig_block::L2Block has an inherent from_bytes method that uses a different
deserialization path (BlockError-based). The Streamable trait method is the correct
one for wire-format compatibility with the Chia protocol.
Errors: Malformed frames map to BlockStoreError::Serialization (never BlockStoreError::Compression).