Assessment and treatment of privacy issues in blockchain systems