Both, actually.
Jesus is our righteousness, as there is no sin in Christ.
If we are in Him, we can't have any sin on us either.
I obey God 100% of the time, because I am in Christ.
In Him, I have His power, His mind, and His fellowship with God.
I have His protections, and His Spirit.