pub(super) fn sanitize<T: ShredCodeTrait>(shred: &T) -> Result<(), Error>