fn consensus_encode_with_buffer<T: Encodable, W: Write>( value: &T, writer: &mut W, ) -> Result<(), Error>