Add NewMsg and NewKey to package