Utilizing Blockchain in Privacy Protection and Machine Unlearning