Secure peer-to-peer communication on the blockchain