Blockchain security explained: how hashing, signatures and consensus protect the ledger, which attacks have worked, and how ...