Telecoms giant Telefonica is partnering to build smartphone security solutions for blockchain-based transactions and messaging apps.