When a law is in its nature a contract, when absolute rights have vested under that contract, a repeal of the law cannot divest those rights.
John Marshall (1974). “The Papers of John Marshall: Correspondence, papers, and selected judicial opinions, April 1807-December 1813”, Chapel Hill, N.C : University of North Carolina Press