An efficient blockchain‐based privacy‐preserving scheme with attribute and homomorphic encryption