A general framework for blockchain analytics
On the Security and Performance of Proof of Work Blockchains