The law is not based on faith Gal3:12
In context, that is talking about seeking to be justified by the law.
Clearly, if we have faith then we receive the Holy Spirit (Galatians 3:14) and if we walk according to the Spirit and its fruit, there is no law that will condemn us in our behaviour (Galatians 5:22-23), the righteousness of the law will be fulfilled in us (Romans 8:4). Thus we will become law-abiding citizens of the kingdom, as Ezekiel 36:25-27 might tell you.
This is a righteousness apart from the law that is nevertheless attested to by the law and the prophets (Romans 3:21) that it is righteousness indeed.
It is not obtained by attempting to obey a set of do's and don'ts...rather, we receive the Holy Spirit by faith and in doing so we become new creatures in Christ (2 Corinthians 5:17) who are inclined towards being obedient to God's word. As we bear the fruit of the Spirit there is no law that will condemn us in our behaviour.
Because the fruit of the Spirit is among other things goodness; and if we walk in goodness we will not violate any law, since the law's existence is in order to condemn behaviour that is evil rather than good.
If anyone is born of God they cannot sin (1 John 3:9); and sin is the transgression of the law (1 John 3:4).
So, being obedient to the law is in fact a result of faith.
Galatians 3:12 is saying that faith and law-keeping are mutually exclusive as means of salvation; so that if you are seeking to be justified by law-keeping, you have ceased to operate in faith and are not justified by faith if you are justified through your keeping of the law.
However, if you can become solid in your understanding that your justification is by and through faith, you can move forward in your Christian walk and begin to walk in the holiness of keeping the law; not in order to be justified; but because the love of the Lord is shed abroad in your heart (Romans 5:5) and that love, being not impractical (1 John 3:17-18) is the fulfilling of the righteousness of the law within you (Romans 13:8-10, 1 John 5:3, 2 JOhn 1:6; Romans 8:4).