Where did we get the Book of Mormon?

The Book of Mormon is the keystone of our religion, and everything hinges upon its truthfulness. If it is fake, then the Prophet Joseph Smith is affected, and everything falls apart.