On The Security, Performance And Privacy Of Proof Of Work Blockchains