Changes to setting vardiff (for coin-switching). Added pubkey to address function