Impl. Sign/Verify Messages
Reorg and clean up some unused functions