add some helper methods to construct and verify messages cryptographically