Discovery applies even in cases where the state is prosecuting you.