Working implementation of message signing.