As you can see, 'did you do it' is in past perfect tense. Therefore, 'I' did it. However, the effect of the action is not important. The effect may or may not last up to now.
'Have you done it' is in present perfect tense. Therefore, 'I have done it'. The effec