Implemented digest verify and added a sample