Herpderp, needed to put digest in the right place

and better check the post conditions