Extracting signing out of the wallet so we can define different packets to be signed.