Security for blockchain and analytics