The propriety of a law, in a constitutional light, must always be determined by the nature of the powers upon which it is founded.