add create_message whic contains functions for creating and validating handshakes