You've lost me there
There is more than one account of the 2 tablets, of the writing of the Book of Law, and the giving of the Law, in part or in full - who wrote it, where and how etc etc. One needs to start back in Exodus with the giving of the so called 10 commandments, then go through the rest of Exodus, in particular chapters 24 and 32 and 39 (going from memory as I don't have my Bible with me right now). Then you need to read Deuteronomy Chapters 4 and 5, and possibly 6 also.
You will see that G_d wrote the first set of tablets, and Moses the second set. On one set the tablets were inscribed on BOTH sides, with the whole Law, and so on. It is not a clear cut issue at all!
Joshua copied the laws of Moses onto stone also.
Joshua 8:32
There, in the presence of the Israelites,
Joshua copied on stones the law of Moses, which he had written.
2 Corinthians 3:7
[ The Glory of the New Covenant ] Now if the ministry that brought death, which was engraved in letters
on stone, came with glory, so that the Israelites could not look steadily at the face of Moses because of its glory, fading though it was,…
In regards to "Ministry of The Spirit." What that means is that you keep God's commandments, not because they are written in stone and are law, but because they are written in your heart; and you keep them for the love of God and your fellow man, because it is the right thing to do.
"The ministry that brought death" is the Mosaic laws of the priesthood, not God's commandments.
2 Corinthians 3:3
You show that you are a letter from Christ, the result of our ministry, written not with ink but with the Spirit of the living God, not on tablets of stone but on tablets of human hearts.
2 Corinthians 3:8
will not the ministry of the Spirit be even more glorious?
Deuteronomy 31:26
Take this
book of the law, and put it in the side of the ark of the covenant of the LORD your God, that it may be there for
a witness against thee. Not the commandments written in stone. There are two sets of laws, God's commandment laws, and the priestly Levitical law.
Romans 10:4
Holman Christian Standard Bible (HCSB)
4 For Christ is the end[
a] of the law for righteousness to everyone who believes.
Footnotes:a.Romans 10:4 Or
goal
Matthew 5:17
“Do not think that I have come to abolish the Law or the Prophets; I have not come to abolish them but to fulfill them.
The commandments and good works have not been done away with. All Paul is getting at is that you cannot buy your way into heaven just by keeping the commandments and good works. Evil people can keep the law and do good works. Such people have even been known to hide among us.
Matthew 5:18
For verily I say unto you, Till heaven and earth pass, one jot or one title shall in no wise pass from the law, till all be fulfilled.
Ephesians 2:10
For we are God’s handiwork, created in Christ Jesus to do good works, which God prepared in advance for us to do.
Ephesians 4:12
to equip his people for works of service, so that the body of Christ may be built up
Romans 3:31
Do we then make void the law through faith? God forbid: yea, we establish the law.
Romans 6:15
What then? shall we sin, because we are not under the law, but under grace? God forbid.
Romans 7:7
What shall we say then? Is the law sin? God forbid. Nay, I had not known sin, but by the law: for I had not known lust, except the law had said, Thou shalt not covet.
Matthew 5:19
Therefore anyone who sets aside one of the least of the commandments and teaches others accordingly will be called least in the kingdom of heaven, but whoever practices and teaches the commandments will be called great in the kingdom of heaven.