setting up signing encrypt etc with revised packet format
some fixes for transactions