Slavery was codified in the US Constitution. The Confederate States just adopted the US Constitution with some additions.
The US Constitution never mentioned slavery by name and referred to it specifically only once -- the 3/5 rule.
By stark contrast the Confederate constitution used words like "slavery", "slaves", "institution of negro slavery", "negros of the African race" & "property in slaves" 17 times.