minor cleanup of wallet.sign