Improved nonce handling, added way to easily get nonce that was used for a certain message