This commit adds the MsgHash helper function which can be used to calculate the digest of a message to be signed using schnorr signatures.