Being righteous means that you are now dedicated to His Will because you are free from the serpent seed; you have repented and surrendered that serpent seed and promise that from now on, His will is going to be done in your life and you will start following the footsteps of the Appointed Son.
Righteousness in the sight of the Father is being free of the serpent seed. You cannot do that without repentance, without committing to surrender your will to Him, by saying, “Father, from now on not my will be done but your will be done upon my life.”
1 John 2:29 “If ye know that he is righteous, ye know that every one that doeth righteousness is born of him.”
1 John 3:8-10 Whosoever doeth not righteousness is not of God.
8 He that committeth sin is of the devil; for the devil sinneth from the beginning. For this purpose the Son of God was manifested, that he might destroy the works of the devil.
9 Whosoever is born of God doth not commit sin; for his seed remaineth in him: and he cannot sin, because he is born of God.
10 In this the children of God are manifest, and the children of the devil: whosoever doeth not righteousness is not of God, neither he that loveth not his brother.