Security of blockchain